Changeset 12302 in josm for trunk


Ignore:
Timestamp:
2017-06-02T20:44:26+02:00 (7 years ago)
Author:
michael2402
Message:

Invalidate the validator layer after repairing the errors. Remove ds.fireSelectionChanged()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r12301 r12302  
    5050import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener;
    5151import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     52import org.openstreetmap.josm.gui.layer.ValidatorLayer;
    5253import org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference;
    5354import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     
    641642                SwingUtilities.invokeAndWait(() -> {
    642643                    Main.main.undoRedo.afterAdd();
    643                     Main.map.repaint();
     644                    Main.getLayerManager().getLayersOfType(ValidatorLayer.class).forEach(ValidatorLayer::invalidate);
    644645                    tree.resetErrors();
    645                     ds.fireSelectionChanged();
    646646                });
    647647            } catch (InterruptedException | InvocationTargetException e) {
Note: See TracChangeset for help on using the changeset viewer.