Changeset 11707 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-03-09T10:03:42+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r11706 r11707 231 231 boolean isKnownDefault = false; 232 232 for (String entry : knownDefaults) { 233 if ( isSimilar(entry,def.getId())) {233 if (entry.equals(def.getId())) { 234 234 isKnownDefault = true; 235 235 newKnownDefaults.add(entry); … … 238 238 } else if (isSimilar(entry, def.getUrl())) { 239 239 isKnownDefault = true; 240 newKnownDefaults.add(def.getId()); 240 if (def.getId() != null) { 241 newKnownDefaults.add(def.getId()); 242 } 241 243 knownDefaults.remove(entry); 242 244 break; … … 247 249 if (def.getId() != null) { 248 250 newKnownDefaults.add(def.getId()); 251 for (ImageryInfo i : layers) { 252 if (isSimilar(def, i)) { 253 isInUserList = true; 254 break; 255 } 256 } 249 257 } else { 250 newKnownDefaults.add(def.getUrl()); 251 } 252 for (ImageryInfo i : layers) { 253 if (isSimilar(def, i)) { 254 isInUserList = true; 255 break; 256 } 258 Main.error("Default imagery ''{0}'' has no id. Skipping.", def.getName()); 257 259 } 258 260 }
Note:
See TracChangeset
for help on using the changeset viewer.