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

If there are broken matrix limits, ignore them

This commit is contained in:
Martin Tůma 2023-04-27 00:16:54 +02:00
parent 2bd25dd9b0
commit 62aabe0c56

View File

@ -223,8 +223,6 @@ void WMTS::createZooms(const CTX &ctx)
mi != ctx.matrixes.constEnd(); ++mi) {
QSet<MatrixLimits>::const_iterator li = ctx.limits.find(
MatrixLimits(mi->id));
if (!ctx.limits.isEmpty() && li == ctx.limits.constEnd())
continue;
_zooms.append(Zoom(mi->id, mi->scaleDenominator, mi->topLeft, mi->tile,
mi->matrix, li == ctx.limits.constEnd() ? QRect() : li->rect));
}