Skip to content

Commit

Permalink
fix for multiband byte (regression992)
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Aug 14, 2012
1 parent 8c86b61 commit 7f6e873
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 7f6e873

Please sign in to comment.