Changeset 8824 in josm for trunk


Ignore:
Timestamp:
2015-10-04T19:24:48+02:00 (9 years ago)
Author:
wiktorn
Message:

When looking for similar imageries look only within the imageries of the same type.

  • fixes problems when user wants to have wms_endpoint imagery starting with the same URL as default one
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java

    r8510 r8824  
    238238
    239239    private boolean isSimilar(ImageryInfo iiA, ImageryInfo iiB) {
     240        if (iiA == null)
     241            return false;
     242        if (!iiA.getImageryType().equals(iiB.getImageryType()))
     243            return false;
    240244        if (iiA.getId() != null && iiB.getId() != null) return iiA.getId().equals(iiB.getId());
    241245        return isSimilar(iiA.getUrl(), iiB.getUrl());
Note: See TracChangeset for help on using the changeset viewer.