Skip to content

Commit e9e5d04

Browse files
authored
Merge pull request NASAWorldWind#70 from twistedtwin/develop
Compare key not value in SurfaceImageLayer
2 parents 7344072 + 415e128 commit e9e5d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gov/nasa/worldwind/layers/SurfaceImageLayer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public void addImage(String name, BufferedImage image, Sector sector)
252252
throw new IllegalArgumentException(message);
253253
}
254254

255-
if (this.imageTable.contains(name))
255+
if (this.imageTable.containsKey(name))
256256
this.removeImage(name);
257257

258258
final ArrayList<SurfaceImage> surfaceImages = new ArrayList<SurfaceImage>();
@@ -359,7 +359,7 @@ public void addImage(String name, BufferedImage image, List<? extends LatLon> co
359359
throw new IllegalArgumentException(message);
360360
}
361361

362-
if (this.imageTable.contains(name))
362+
if (this.imageTable.containsKey(name))
363363
this.removeImage(name);
364364

365365
final ArrayList<SurfaceImage> surfaceImages = new ArrayList<SurfaceImage>();

0 commit comments

Comments
 (0)