mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed broken zoom rectangle computation
This commit is contained in:
parent
bcd14726f3
commit
1d3d1aa5b7
@ -258,7 +258,8 @@ void MapView::setPalette(const Palette &palette)
|
||||
|
||||
void MapView::setMap(Map *map)
|
||||
{
|
||||
QRectF vr(mapToScene(viewport()->rect()).boundingRect());
|
||||
QRectF vr(mapToScene(viewport()->rect()).boundingRect()
|
||||
.intersected(_map->bounds()));
|
||||
RectC cr(_map->xy2ll(vr.topLeft()), _map->xy2ll(vr.bottomRight()));
|
||||
|
||||
_map->unload();
|
||||
|
Loading…
Reference in New Issue
Block a user