Skip to content

Commit 433b0ab

Browse files
author
mhugent
committedJul 10, 2006

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,13 @@ bool QgsWmsProvider::calculateExtent()
19411941
continue; //ignore extents of layers which cannot be transformed info the required CRS
19421942
}
19431943

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+
19441951
// add to the combined extent of all the active sublayers
19451952
if (firstLayer)
19461953
{

0 commit comments

Comments
 (0)
Please sign in to comment.