Skip to content

Commit

Permalink
g++ 3.2.2 didn't like isfinite() without the std::, so these have bee…
Browse files Browse the repository at this point in the history
…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 60be5bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -32,6 +32,7 @@
#include <q3url.h>
#include <Q3Picture>


#ifdef QGISDEBUG
#include <QFile>
#endif
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 60be5bd

Please sign in to comment.