Skip to content
Permalink
Browse files
g++ 3.2.2 didn't like isfinite() without the std::, so these have bee…
…n added.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5596 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 14, 2006
1 parent cd04495 commit 60be5bdb2af96254010e3ab5c1ab3738768150e4
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/wms/qgswmsprovider.cpp
@@ -32,6 +32,7 @@
#include <q3url.h>
#include <Q3Picture>


#ifdef QGISDEBUG
#include <QFile>
#endif
@@ -1942,8 +1943,8 @@ bool QgsWmsProvider::calculateExtent()
}

//make sure extent does not contain 'inf' or 'nan'
if(!isfinite(extent.xMin()) || !isfinite((int)extent.yMin()) || !isfinite(extent.xMax()) || \
!isfinite((int)extent.yMax()))
if(!std::isfinite(extent.xMin()) || !std::isfinite((int)extent.yMin()) || !std::isfinite(extent.xMax()) || \
!std::isfinite((int)extent.yMax()))
{
continue;
}

0 comments on commit 60be5bd

Please sign in to comment.