Changeset 16790 in josm
- Timestamp:
- 2020-07-17T23:52:59+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/ActivateLayerAction.java
r12799 r16790 71 71 toActivate = layer; 72 72 } else { 73 toActivate = model.getSelectedLayers().get(0); 73 List<Layer> layers = model.getSelectedLayers(); 74 if (layers.isEmpty()) { 75 // see #19476 for a possible cause 76 return; 77 } 78 toActivate = layers.get(0); 74 79 } 75 80 execute(toActivate);
Note:
See TracChangeset
for help on using the changeset viewer.