Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix reverse iteration
  • Loading branch information
nyalldawson committed Mar 30, 2021
1 parent 9085de2 commit d000d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmscapabilities.cpp
Expand Up @@ -2192,7 +2192,7 @@ bool QgsWmsCapabilities::detectTileLayerBoundingBox( QgsWmtsTileLayer &tileLayer
return false;

// take most coarse tile matrix ...
QMap<double, QgsWmtsTileMatrix>::const_iterator tmIt = tmsIt->tileMatrices.constEnd() - 1;
QMap<double, QgsWmtsTileMatrix>::const_iterator tmIt = --tmsIt->tileMatrices.constEnd();
if ( tmIt == tmsIt->tileMatrices.constEnd() )
return false;

Expand Down

0 comments on commit d000d00

Please sign in to comment.