mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-30 21:09:15 +02:00
Fixed crash on empty MBTiles files
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user