1
0
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:
Martin Tůma 2018-04-03 22:36:08 +02:00
parent 4096d87a6a
commit fb16c3f2db

View File

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