Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Jun 29, 2015
1 parent cc13c57 commit 8f2a3ae1ed135d1280efcf03df761ead98307744
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/raster/qgsalignraster.cpp
@@ -624,7 +624,7 @@ double QgsAlignRaster::RasterInfo::identify( double mx, double my )
float* pafScanline = ( float * ) CPLMalloc( sizeof( float ) );
CPLErr err = GDALRasterIO( hBand, GF_Read, px, py, 1, 1,
pafScanline, 1, 1, GDT_Float32, 0, 0 );
double value = err == CE_None ? pafScanline[0] : NAN;
double value = err == CE_None ? pafScanline[0] : std::numeric_limits<double>::quiet_NaN();
CPLFree( pafScanline );

return value;

0 comments on commit 8f2a3ae

Please sign in to comment.
You can’t perform that action at this time.