We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 196f610 commit 433b0abCopy full SHA for 433b0ab
src/providers/wms/qgswmsprovider.cpp
@@ -1941,6 +1941,13 @@ bool QgsWmsProvider::calculateExtent()
1941
continue; //ignore extents of layers which cannot be transformed info the required CRS
1942
}
1943
1944
+ //make sure extent does not contain 'inf' or 'nan'
1945
+ if(!isfinite(extent.xMin()) || !isfinite((int)extent.yMin()) || !isfinite(extent.xMax()) || \
1946
+!isfinite((int)extent.yMax()))
1947
+ {
1948
+ continue;
1949
+ }
1950
+
1951
// add to the combined extent of all the active sublayers
1952
if (firstLayer)
1953
{
0 commit comments