mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +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