Changeset 33292 in osm for applications/editors/josm/plugins/routes
- Timestamp:
- 2017-05-06T21:52:06+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RoutesPlugin.java
r33290 r33292 80 80 if (layer instanceof OsmDataLayer) { 81 81 for (RouteLayer routeLayer : routeLayers) { 82 if (! Main.getLayerManager().containsLayer(routeLayer)) {82 if (!e.getSource().containsLayer(routeLayer)) { 83 83 SwingUtilities.invokeLater(() -> { 84 Main.getLayerManager().addLayer(routeLayer);84 e.getSource().addLayer(routeLayer); 85 85 }); 86 86 } … … 99 99 SwingUtilities.invokeLater(() -> { 100 100 for (RouteLayer routeLayer : routeLayers) { 101 if ( Main.getLayerManager().containsLayer(routeLayer)) {102 Main.getLayerManager().removeLayer(routeLayer);101 if (e.getSource().containsLayer(routeLayer)) { 102 e.getSource().removeLayer(routeLayer); 103 103 } 104 104 }
Note:
See TracChangeset
for help on using the changeset viewer.