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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Jul 7 22:03:35 EDT 2008


Author: ersts
Date: 2008-07-07 22:03:35 -0400 (Mon, 07 Jul 2008)
New Revision: 8731

Modified:
   trunk/qgis/src/core/raster/qgsrasterlayer.cpp
Log:
-The default contrast enhancement type when no qsetting value is present (i.e., user override) was incorrectly set to when this functionality was added in revision 8398

Modified: trunk/qgis/src/core/raster/qgsrasterlayer.cpp
===================================================================
--- trunk/qgis/src/core/raster/qgsrasterlayer.cpp	2008-07-07 19:54:41 UTC (rev 8730)
+++ trunk/qgis/src/core/raster/qgsrasterlayer.cpp	2008-07-08 02:03:35 UTC (rev 8731)
@@ -536,7 +536,7 @@
   //defaults - Needs to be set after the Contrast list has been build
   //Try to read the default contrast enhancement from the config file
   QSettings myQSettings;
-  setContrastEnhancementAlgorithm(myQSettings.value("/Raster/defaultContrastEnhancementAlgorithm", "NO_STRETCH").toString());
+  setContrastEnhancementAlgorithm(myQSettings.value("/Raster/defaultContrastEnhancementAlgorithm", "STRETCH_TO_MINMAX").toString());
   
   //decide what type of layer this is...
   //note that multiband images can have one or more 'undefindd' bands,



More information about the QGIS-commit mailing list