Changeset 12354 in josm


Ignore:
Timestamp:
2017-06-09T00:24:55+02:00 (4 months ago)
Author:
michael2402
Message:

WireframeToggleAction: repaint all data layers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/WireframeToggleAction.java

    r10453 r12354  
    1111import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer;
    1212import org.openstreetmap.josm.data.osm.visitor.paint.WireframeMapRenderer;
     13import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1314import org.openstreetmap.josm.tools.Shortcut;
    1415
     
    5051
    5152        notifySelectedState();
    52         if (Main.isDisplayingMapView()) {
    53             Main.map.mapView.repaint();
    54         }
     53        Main.getLayerManager().getLayersOfType(OsmDataLayer.class).forEach(OsmDataLayer::invalidate);
    5554    }
    5655}
Note: See TracChangeset for help on using the changeset viewer.