Skip to content

Commit

Permalink
Merge branch 'master' into mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
JOSM GitHub mirror committed Oct 4, 2015
2 parents c7a59df + 886a5a3 commit 7f46201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ public void updateEntriesFromDefaults() {
}

private boolean isSimilar(ImageryInfo iiA, ImageryInfo iiB) {
if (iiA == null)
return false;
if (!iiA.getImageryType().equals(iiB.getImageryType()))
return false;
if (iiA.getId() != null && iiB.getId() != null) return iiA.getId().equals(iiB.getId());
return isSimilar(iiA.getUrl(), iiB.getUrl());
}
Expand Down

0 comments on commit 7f46201

Please sign in to comment.