Changeset 5384 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2012-07-30T23:20:29+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r5382 r5384 277 277 if (layer instanceof GpxLayer) { 278 278 addGpxLayer((GpxLayer)layer); 279 } else if (layer .isBackgroundLayer() || layers.isEmpty()) {279 } else if (layers.isEmpty()) { 280 280 layers.add(layer); 281 } else if (layer.isBackgroundLayer()) { 282 int i = 0; 283 for (; i < layers.size(); i++) { 284 if (layers.get(i).isBackgroundLayer()) { 285 break; 286 } 287 } 288 layers.add(i, layer); 281 289 } else { 282 290 layers.add(0, layer);
Note:
See TracChangeset
for help on using the changeset viewer.