From fb16c3f2db4ed51e1e53c03a657bd842a249a726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 3 Apr 2018 22:36:08 +0200 Subject: [PATCH] Fixed tile cache reload logic --- src/GUI/mapview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/mapview.cpp b/src/GUI/mapview.cpp index 1ad35ce3..7b25fe74 100644 --- a/src/GUI/mapview.cpp +++ b/src/GUI/mapview.cpp @@ -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