- Timestamp:
- 2023-11-15T19:00:25+01:00 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java
r18895 r18899 383 383 remainingLayers.remove(except); 384 384 385 // First look for visible data layer 386 for (Layer layer : remainingLayers) { 387 if (layer instanceof OsmDataLayer && layer.isVisible()) { 388 return layer; 389 } 390 } 391 392 // Then any data layer 385 // First look for visible data layer (and store first data layer for later) 386 Layer osmlayer = null; 393 387 for (Layer layer : remainingLayers) { 394 388 if (layer instanceof OsmDataLayer) { 395 return layer; 396 } 397 } 389 if (layer.isVisible()) { 390 return layer; 391 } else if (osmlayer == null) { 392 osmlayer = layer; 393 } 394 } 395 } 396 397 // Then any data layer 398 if (osmlayer != null) 399 return osmlayer; 398 400 399 401 // Then any layer
Note:
See TracChangeset
for help on using the changeset viewer.