1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Fixed accessing of un-initialized variable

This commit is contained in:
Martin Tůma 2018-03-01 19:06:55 +01:00
parent 9300d671a1
commit b40e0d3bbf

View File

@ -76,6 +76,7 @@ MapView::MapView(Map *map, POI *poi, QWidget *parent)
_digitalZoom = 0; _digitalZoom = 0;
_map->setBackgroundColor(_backgroundColor); _map->setBackgroundColor(_backgroundColor);
_res = _map->resolution(_map->bounds());
_scene->setSceneRect(_map->bounds()); _scene->setSceneRect(_map->bounds());
centerOn(_scene->sceneRect().center()); centerOn(_scene->sceneRect().center());