From b40e0d3bbfb311bdcd5af6e344e8af2e3515ba3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 1 Mar 2018 19:06:55 +0100 Subject: [PATCH] Fixed accessing of un-initialized variable --- src/GUI/mapview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GUI/mapview.cpp b/src/GUI/mapview.cpp index 7777a859..464ad262 100644 --- a/src/GUI/mapview.cpp +++ b/src/GUI/mapview.cpp @@ -76,6 +76,7 @@ MapView::MapView(Map *map, POI *poi, QWidget *parent) _digitalZoom = 0; _map->setBackgroundColor(_backgroundColor); + _res = _map->resolution(_map->bounds()); _scene->setSceneRect(_map->bounds()); centerOn(_scene->sceneRect().center());