Skip to content

Commit f52bddf

Browse files
author
ersts
committed
-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/qgis@8731 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 301a37f commit f52bddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/raster/qgsrasterlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ bool QgsRasterLayer::readFile( QString const & fileName )
536536
//defaults - Needs to be set after the Contrast list has been build
537537
//Try to read the default contrast enhancement from the config file
538538
QSettings myQSettings;
539-
setContrastEnhancementAlgorithm(myQSettings.value("/Raster/defaultContrastEnhancementAlgorithm", "NO_STRETCH").toString());
539+
setContrastEnhancementAlgorithm(myQSettings.value("/Raster/defaultContrastEnhancementAlgorithm", "STRETCH_TO_MINMAX").toString());
540540

541541
//decide what type of layer this is...
542542
//note that multiband images can have one or more 'undefindd' bands,

0 commit comments

Comments
 (0)