Skip to content

Commit bcca81b

Browse files
committedDec 18, 2012
Fixed default contrast enhancement for raster multiband / single byte
1 parent 6ebeb97 commit bcca81b

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
@@ -1954,7 +1954,7 @@ void QgsRasterLayer::setDefaultContrastEnhancement()
19541954
}
19551955
else if ( mDrawingStyle == MultiBandColor )
19561956
{
1957-
if ( QgsRasterBlock::typeSize( dataProvider()->srcDataType( 1 ) ) == 8 )
1957+
if ( QgsRasterBlock::typeSize( dataProvider()->srcDataType( 1 ) ) == 1 )
19581958
{
19591959
myKey = "multiBandSingleByte";
19601960
myDefault = "NoEnhancement";

0 commit comments

Comments
 (0)
Please sign in to comment.