Skip to content

Commit

Permalink
Fixed default contrast enhancement for raster multiband / single byte
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Dec 18, 2012
1 parent 6ebeb97 commit bcca81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ void QgsRasterLayer::setDefaultContrastEnhancement()
}
else if ( mDrawingStyle == MultiBandColor )
{
if ( QgsRasterBlock::typeSize( dataProvider()->srcDataType( 1 ) ) == 8 )
if ( QgsRasterBlock::typeSize( dataProvider()->srcDataType( 1 ) ) == 1 )
{
myKey = "multiBandSingleByte";
myDefault = "NoEnhancement";
Expand Down

0 comments on commit bcca81b

Please sign in to comment.