Changeset 12360 in josm


Ignore:
Timestamp:
2017-06-09T19:16:05+02:00 (2 months ago)
Author:
Don-vip
Message:

see #14929 - filter dialog: invalidate only edit layer instead of repainting the whole mapview

File:
1 edited

Legend:

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

    r12299 r12360  
    3030import org.openstreetmap.josm.data.osm.Node;
    3131import org.openstreetmap.josm.data.osm.OsmPrimitive;
     32import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    3233import org.openstreetmap.josm.tools.Utils;
    3334
     
    146147
    147148        if (changed && Main.isDisplayingMapView()) {
    148             Main.map.mapView.repaint();
     149            OsmDataLayer editLayer = Main.getLayerManager().getEditLayer();
     150            if (editLayer != null) {
     151                editLayer.invalidate();
     152            }
    149153            Main.map.filterDialog.updateDialogHeader();
    150154        }
Note: See TracChangeset for help on using the changeset viewer.