Changeset 2446 in josm
- Timestamp:
- 2009-11-13T12:14:49+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r2402 r2446 158 158 return; 159 159 } 160 for (int i=layers.size()-1; i> 0; i--) {160 for (int i=layers.size()-1; i>= 0; i--) { 161 161 if (layers.get(i) instanceof OsmDataLayer) { 162 if (i == layers.size() ) {162 if (i == layers.size()-1) { 163 163 layers.add(layer); 164 164 } else { … … 180 180 } 181 181 182 if (layer.isBackgroundLayer() || layers.isEmpty()) { 182 if (layer instanceof GpxLayer) { 183 addGpxLayer((GpxLayer)layer); 184 } else if (layer.isBackgroundLayer() || layers.isEmpty()) { 183 185 layers.add(layer); 184 } else if (layer instanceof GpxLayer){185 addGpxLayer((GpxLayer)layer);186 186 } else { 187 187 layers.add(0, layer);
Note:
See TracChangeset
for help on using the changeset viewer.