Skip to content

Commit

Permalink
Fix #23945: ImageViewerDialog.displayImages() - do not re-center if t…
Browse files Browse the repository at this point in the history
…he image has not changed (patch by IreuN)

git-svn-id: https://josm.openstreetmap.de/svn/trunk@19266 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Dec 10, 2024
1 parent 0f7d002 commit a3e112c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ public void displayImages(List<? extends IImageEntry<?>> entries) {

imageChanged = currentEntry != entry;

if (centerView && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) {
if (centerView && imageChanged && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) {
MainApplication.getMap().mapView.zoomTo(entry.getPos());
}

Expand Down

0 comments on commit a3e112c

Please sign in to comment.