From 78e599ef8d48e96abbec01c697e6987f8dc4d7e5 Mon Sep 17 00:00:00 2001
From: IreuN <gatkowski.michal@gmail.com>
Date: Mon, 30 Sep 2024 00:19:45 +0200
Subject: [PATCH] do not zoom into entry if the entry has not changed
---
.../josm/gui/layer/geoimage/ImageViewerDialog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java b/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
index 17e8d22db4f..d4b402296b2 100644
a
|
b
|
public void displayImages(List<? extends IImageEntry<?>> entries) {
|
892 | 892 | |
893 | 893 | imageChanged = currentEntry != entry; |
894 | 894 | |
895 | | if (centerView && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) { |
| 895 | if (centerView && imageChanged && entry != null && MainApplication.isDisplayingMapView() && entry.getPos() != null) { |
896 | 896 | MainApplication.getMap().mapView.zoomTo(entry.getPos()); |
897 | 897 | } |
898 | 898 | |