-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

git-svn-id: http://svn.osgeo.org/qgis/trunk@8731 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
ersts 2008-07-08 02:03:35 +00:00
parent 038dd10280
commit 0f0c711050

View File

@ -536,7 +536,7 @@ bool QgsRasterLayer::readFile( QString const & fileName )
//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,