mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
cd04495c5d
commit
60be5bdb2a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user