1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed crash on empty IMG/GMAP maps

This commit is contained in:
Martin Tůma 2023-04-03 23:29:35 +02:00
parent 20aaf68405
commit 81f695a672

View File

@ -109,6 +109,9 @@ void MapData::computeZooms()
zooms.insert(z.at(i)); zooms.insert(z.at(i));
} }
if (zooms.isEmpty())
return;
_zooms = zooms.values(); _zooms = zooms.values();
std::sort(_zooms.begin(), _zooms.end()); std::sort(_zooms.begin(), _zooms.end());