1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Fixed crash on empty MBTiles files

This commit is contained in:
Martin Tůma 2023-11-26 09:07:08 +01:00
parent e504de37c3
commit cbca92513b

View File

@ -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;