mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51: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;
|
||||
|
||||
return _map->zoomFit(viewport()->size() - QSize(2*MARGIN, 2*MARGIN),
|
||||
br.isNull() ? RectC(_map->xy2ll(sceneRect().topLeft()),
|
||||
_map->xy2ll(sceneRect().bottomRight())) : br);
|
||||
br.isNull() ? RectC(_map->xy2ll(_map->bounds().topLeft()),
|
||||
_map->xy2ll(_map->bounds().bottomRight())) : br);
|
||||
}
|
||||
|
||||
QPointF MapView::contentCenter() const
|
||||
|
Loading…
Reference in New Issue
Block a user