Changeset 18591 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
- Timestamp:
- 2022-11-09T20:26:24+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r18265 r18591 172 172 this.useThumbs = useThumbs; 173 173 this.data.addImageDataUpdateListener(this); 174 this.data.setLayer(this); 174 175 } 175 176 … … 232 233 } else { 233 234 data.setSelectedImage(img); 235 ImageViewerDialog.getInstance().displayImages(GeoImageLayer.this, Collections.singletonList(img)); 234 236 } 235 237 } … … 522 524 */ 523 525 public void showCurrentPhoto() { 524 if (data.getSelectedImage() != null) {525 clearOtherCurrentPhotos();526 }527 526 updateBufferAndRepaint(); 528 527 } … … 630 629 631 630 /** 632 * Clears the currentPhoto of the other GeoImageLayer's. Otherwise there could be multiple selected photos.633 */634 private void clearOtherCurrentPhotos() {635 for (GeoImageLayer layer:636 MainApplication.getLayerManager().getLayersOfType(GeoImageLayer.class)) {637 if (layer != this) {638 layer.getImageData().clearSelectedImage();639 }640 }641 }642 643 /**644 631 * Registers a map mode for which the functionality of this layer should be available. 645 632 * @param mapMode Map mode to be registered
Note:
See TracChangeset
for help on using the changeset viewer.