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

Do not check for insane numbers of DEM tiles

This commit is contained in:
Martin Tůma 2021-09-04 10:02:24 +02:00
parent d50ab8607e
commit b938e24d65

View File

@ -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);
} }