diff --git a/src/GUI/mapview.cpp b/src/GUI/mapview.cpp index be7ae225..20c1d7c0 100644 --- a/src/GUI/mapview.cpp +++ b/src/GUI/mapview.cpp @@ -287,7 +287,10 @@ void MapView::setMap(Map *map) it.value()->setMap(_map); updatePOIVisibility(); - centerOn(_map->ll2xy(cr.center())); + QPointF oc = vr.center(); + QPointF nc = _map->ll2xy(cr.center()); + if (qAbs(oc.x() - nc.x()) >= 1.0 || qAbs(oc.y() - nc.y()) >= 1.0) + centerOn(nc); resetCachedContent(); QPixmapCache::clear();