From b938e24d65de35d9f634d77bcde79c11af708133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 4 Sep 2021 10:02:24 +0200 Subject: [PATCH] Do not check for insane numbers of DEM tiles --- src/data/demloader.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/data/demloader.cpp b/src/data/demloader.cpp index ac029c3e..8a7bb719 100644 --- a/src/data/demloader.cpp +++ b/src/data/demloader.cpp @@ -57,12 +57,11 @@ bool DEMLoader::loadTiles(const RectC &rect) QUrl url(tileUrl(t)); dl.append(Download(url, isZip(url) ? zn : fn)); } - } - if (dl.size() > DOWNLOAD_LIMIT) { - qWarning("Requested DEM area is too large (%u tiles)", - (unsigned)dl.size()); - return false; + if (dl.size() > DOWNLOAD_LIMIT) { + qWarning("DEM download limit exceeded."); + return false; + } } return _downloader->get(dl, _authorization);