[QGIS Commit] r8469 - trunk/qgis/src/core/raster

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon May 19 12:43:33 EDT 2008


Author: jef
Date: 2008-05-19 12:43:33 -0400 (Mon, 19 May 2008)
New Revision: 8469

Modified:
   trunk/qgis/src/core/raster/qgsrasterlayer.h
Log:
fix MSVC warning

Modified: trunk/qgis/src/core/raster/qgsrasterlayer.h
===================================================================
--- trunk/qgis/src/core/raster/qgsrasterlayer.h	2008-05-19 13:43:37 UTC (rev 8468)
+++ trunk/qgis/src/core/raster/qgsrasterlayer.h	2008-05-19 16:43:33 UTC (rev 8469)
@@ -532,7 +532,7 @@
     /** \brief Wrapper for GDALComputeRasterMinMax with the estimate option */
     void computeMinimumMaximumEstimates(int theBand, double* theMinMax)
     {
-      if(0 < theBand && theBand <= getBandCount())
+      if(0 < theBand && theBand <= (int) getBandCount())
       {
         GDALRasterBandH myGdalBand = GDALGetRasterBand(mGdalDataset,theBand);
         GDALComputeRasterMinMax( myGdalBand, 1, theMinMax );



More information about the QGIS-commit mailing list