1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed broken handling of maps with basemaps

This commit is contained in:
Martin Tůma 2022-03-23 08:04:05 +01:00
parent 78703f3651
commit 4561c71922

View File

@ -290,7 +290,7 @@ void TREFile::clear()
int TREFile::level(int bits, bool baseMap)
{
if (baseMap) {
if (!_isBaseMap && _levels.first().bits > bits)
if (!_isBaseMap && _levels.at(_firstLevel).bits > bits)
return -1;
if (_isBaseMap && bits > _levels.last().bits)
return -1;