Changeset 19266 in josm for trunk/src


Ignore:
Timestamp:
2024-12-10T17:05:52+01:00 (2 months ago)
Author:
taylor.smock
Message:

Fix #23945: ImageViewerDialog.displayImages() - do not re-center if the image has not changed (patch by IreuN)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r19021 r19266  
    893893            imageChanged = currentEntry != entry;
    894894
    895             if (centerView && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) {
     895            if (centerView && imageChanged && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) {
    896896                MainApplication.getMap().mapView.zoomTo(entry.getPos());
    897897            }
Note: See TracChangeset for help on using the changeset viewer.