mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Fixed crash on empty IMG/GMAP maps
This commit is contained in:
parent
20aaf68405
commit
81f695a672
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user