Changeset 19224 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2009-12-28T09:44:19+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r19072 r19224 14 14 import java.util.Collection; 15 15 import java.util.HashMap; 16 import java.util.Iterator;17 import java.util.LinkedList;18 16 import java.util.List; 19 17 import java.util.Map; … … 291 289 } 292 290 291 /* -------------------------------------------------------------------------- */ 292 /* interface LayerChangeListener */ 293 /* -------------------------------------------------------------------------- */ 293 294 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 294 295 if (newLayer instanceof OsmDataLayer) { … … 306 307 307 308 public void layerRemoved(Layer oldLayer) { 309 if (oldLayer == errorLayer) { 310 errorLayer = null; 311 return; 312 } 308 313 layerErrors.remove(oldLayer); 314 if (Main.map.mapView.getLayersOfType(OsmDataLayer.class).isEmpty()) { 315 if (errorLayer != null) { 316 Main.map.mapView.removeLayer(errorLayer); 317 } 318 } 309 319 } 310 320 }
Note:
See TracChangeset
for help on using the changeset viewer.