1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Invalidate the coordinates on map change under cursor

This commit is contained in:
Martin Tůma 2019-02-18 22:51:38 +01:00
parent bb71cfc426
commit 18392db8f0

View File

@ -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)