mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Fixed crash on empty MBTiles files
This commit is contained in:
parent
e504de37c3
commit
cbca92513b
@ -82,6 +82,11 @@ bool MBTilesMap::getZooms()
|
|||||||
_zooms.append(i);
|
_zooms.append(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_zooms.size()) {
|
||||||
|
_errorString = "Empty tile set";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
_zi = _zooms.size() - 1;
|
_zi = _zooms.size() - 1;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user