Changeset 17174 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-08-19T17:35:27+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java
r16788 r17174 20 20 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 21 21 import org.openstreetmap.josm.gui.layer.Layer; 22 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 22 23 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener; 23 24 import org.openstreetmap.josm.plugins.validator.util.Bag; … … 133 134 */ 134 135 public void layerRemoved(Layer oldLayer) { 135 if (oldLayer == Main.map.mapView.getEditLayer()) { 136 if (oldLayer instanceof OsmDataLayer && Main.map.mapView.getEditLayer() == null) { 137 System.out.println("inside removeLayer"); 136 138 Main.map.mapView.removeLayer(this); 137 139 } else if (oldLayer == this) {
Note:
See TracChangeset
for help on using the changeset viewer.