mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Do not check for insane numbers of DEM tiles
This commit is contained in:
parent
d50ab8607e
commit
b938e24d65
@ -57,13 +57,12 @@ bool DEMLoader::loadTiles(const RectC &rect)
|
|||||||
QUrl url(tileUrl(t));
|
QUrl url(tileUrl(t));
|
||||||
dl.append(Download(url, isZip(url) ? zn : fn));
|
dl.append(Download(url, isZip(url) ? zn : fn));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (dl.size() > DOWNLOAD_LIMIT) {
|
if (dl.size() > DOWNLOAD_LIMIT) {
|
||||||
qWarning("Requested DEM area is too large (%u tiles)",
|
qWarning("DEM download limit exceeded.");
|
||||||
(unsigned)dl.size());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return _downloader->get(dl, _authorization);
|
return _downloader->get(dl, _authorization);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user