Skip to content
Permalink
Browse files

fix for multiband byte (regression992)

  • Loading branch information
blazek committed Aug 14, 2012
1 parent 8c86b61 commit 7f6e87354afc4fedcd8d027c21f1f31e4d03adc1
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/raster/qgsrasterlayer.cpp
@@ -2016,9 +2016,15 @@ void QgsRasterLayer::setDefaultContrastEnhancement()
QgsDebugMsg( "myKey = " + myKey );

QString myAlgorithmString = mySettings.value( "/Raster/defaultContrastEnhancementAlgorithm/" + myKey, myDefault ).toString();
QgsDebugMsg( "myAlgorithmString = " + myAlgorithmString );

QgsContrastEnhancement::ContrastEnhancementAlgorithm myAlgorithm = QgsContrastEnhancement::contrastEnhancementAlgorithmFromString( myAlgorithmString );

if ( myAlgorithm == QgsContrastEnhancement::NoEnhancement )
{
return;
}

QString myLimitsString = mySettings.value( "/Raster/defaultContrastEnhancementLimits", "CumulativeCut" ).toString();
ContrastEnhancementLimits myLimits = contrastEnhancementLimitsFromString( myLimitsString );

0 comments on commit 7f6e873

Please sign in to comment.
You can’t perform that action at this time.