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:
parent
78703f3651
commit
4561c71922
@ -290,7 +290,7 @@ void TREFile::clear()
|
|||||||
int TREFile::level(int bits, bool baseMap)
|
int TREFile::level(int bits, bool baseMap)
|
||||||
{
|
{
|
||||||
if (baseMap) {
|
if (baseMap) {
|
||||||
if (!_isBaseMap && _levels.first().bits > bits)
|
if (!_isBaseMap && _levels.at(_firstLevel).bits > bits)
|
||||||
return -1;
|
return -1;
|
||||||
if (_isBaseMap && bits > _levels.last().bits)
|
if (_isBaseMap && bits > _levels.last().bits)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user