1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-13 18:35:11 +02:00

Fixed accessing of un-initialized variable

This commit is contained in:
2018-03-01 19:06:55 +01:00
parent 9300d671a1
commit 188b1a65cb

View File

@ -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());