diff --git a/src/atlas.cpp b/src/atlas.cpp index 5e500d4d..3b745654 100644 --- a/src/atlas.cpp +++ b/src/atlas.cpp @@ -107,6 +107,7 @@ void Atlas::computeBounds() Atlas::Atlas(const QString &path, QObject *parent) : Map(parent) { _valid = false; + _zoom = 0; QFileInfo fi(path); _name = fi.fileName(); @@ -139,7 +140,6 @@ Atlas::Atlas(const QString &path, QObject *parent) : Map(parent) computeZooms(); computeBounds(); - _zoom = 0; _valid = true; } diff --git a/src/offlinemap.cpp b/src/offlinemap.cpp index 223b986b..5d31ef3c 100644 --- a/src/offlinemap.cpp +++ b/src/offlinemap.cpp @@ -328,6 +328,7 @@ OfflineMap::OfflineMap(const QString &path, QObject *parent) : Map(parent) _valid = false; _img = 0; _projection = 0; + _resolution = 0; QFileInfo fi(path); _name = fi.fileName();