mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Invalidate the coordinates on map change under cursor
This commit is contained in:
parent
bb71cfc426
commit
18392db8f0
@ -102,8 +102,7 @@ void MapView::centerOn(const QPointF &pos)
|
|||||||
QRectF vr(mapToScene(viewport()->rect()).boundingRect());
|
QRectF vr(mapToScene(viewport()->rect()).boundingRect());
|
||||||
_res = _map->resolution(vr);
|
_res = _map->resolution(vr);
|
||||||
_mapScale->setResolution(_res);
|
_mapScale->setResolution(_res);
|
||||||
if (_coordinates->isVisible() && underMouse())
|
_coordinates->setCoordinates(Coordinates());
|
||||||
_coordinates->setCoordinates(_map->xy2ll(pos));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PathItem *MapView::addTrack(const Track &track)
|
PathItem *MapView::addTrack(const Track &track)
|
||||||
|
Loading…
Reference in New Issue
Block a user