mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-01 07:01:16 +01:00
Fixed tile cache reload logic
This commit is contained in:
parent
4096d87a6a
commit
fb16c3f2db
@ -194,8 +194,8 @@ int MapView::fitMapZoom() const
|
|||||||
RectC br = _tr | _rr | _wr;
|
RectC br = _tr | _rr | _wr;
|
||||||
|
|
||||||
return _map->zoomFit(viewport()->size() - QSize(2*MARGIN, 2*MARGIN),
|
return _map->zoomFit(viewport()->size() - QSize(2*MARGIN, 2*MARGIN),
|
||||||
br.isNull() ? RectC(_map->xy2ll(sceneRect().topLeft()),
|
br.isNull() ? RectC(_map->xy2ll(_map->bounds().topLeft()),
|
||||||
_map->xy2ll(sceneRect().bottomRight())) : br);
|
_map->xy2ll(_map->bounds().bottomRight())) : br);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPointF MapView::contentCenter() const
|
QPointF MapView::contentCenter() const
|
||||||
|
Loading…
Reference in New Issue
Block a user