Changeset 11078 in josm
- Timestamp:
- 2016-10-04T14:43:51+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/DeleteLayerAction.java
r10600 r11078 47 47 return; 48 48 for (Layer l: selectedLayers) { 49 Main.getLayerManager().removeLayer(l); 49 if (model.getLayerManager().containsLayer(l)) { 50 // it may happen that this call removes other layers. 51 // this is why we need to check if every layer is still in the list of selected layers. 52 model.getLayerManager().removeLayer(l); 53 } 50 54 } 51 55 }
Note:
See TracChangeset
for help on using the changeset viewer.