From 18392db8f061e2e4d5a988da12082620528250c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 18 Feb 2019 22:51:38 +0100 Subject: [PATCH] Invalidate the coordinates on map change under cursor --- src/GUI/mapview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GUI/mapview.cpp b/src/GUI/mapview.cpp index 489b5119..77c25cec 100644 --- a/src/GUI/mapview.cpp +++ b/src/GUI/mapview.cpp @@ -102,8 +102,7 @@ void MapView::centerOn(const QPointF &pos) QRectF vr(mapToScene(viewport()->rect()).boundingRect()); _res = _map->resolution(vr); _mapScale->setResolution(_res); - if (_coordinates->isVisible() && underMouse()) - _coordinates->setCoordinates(_map->xy2ll(pos)); + _coordinates->setCoordinates(Coordinates()); } PathItem *MapView::addTrack(const Track &track)