Skip to content


-The default contrast enhancement type when no qsetting value is pres…
Browse files Browse the repository at this point in the history
…ent (i.e., user override) was incorrectly set to when this functionality was added in revision 8398

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed Jul 8, 2008
1 parent 038dd10 commit 0f0c711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 0f0c711

Please sign in to comment.