Skip to content
Permalink
Browse files

Fix reverse iteration

  • Loading branch information
nyalldawson committed Mar 30, 2021
1 parent 9085de2 commit d000d006d49ea18361250b02d2a51a645d3f4d6b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmscapabilities.cpp
@@ -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;

0 comments on commit d000d00

Please sign in to comment.