mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +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);
|
||||
}
|
||||
|
||||
if (!_zooms.size()) {
|
||||
_errorString = "Empty tile set";
|
||||
return false;
|
||||
}
|
||||
|
||||
_zi = _zooms.size() - 1;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user