g++ 3.2.2 didn't like isfinite() without the std::, so these have been added.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5596 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2006-07-14 05:19:58 +00:00
parent cd04495c5d
commit 60be5bdb2a

View File

@ -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;
}