Skip to content

Commit a6df30c

Browse files
committedJan 15, 2012
display real band number for multiband rasters when single band gray
drawing style used (patch by Bill Clay, fix #4138)
1 parent 4413a7d commit a6df30c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/app/qgsrasterlayerproperties.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ void QgsRasterLayerProperties::sync()
737737
cboRed->setCurrentIndex( cboRed->findText( mRasterLayer->redBandName() ) );
738738
cboGreen->setCurrentIndex( cboGreen->findText( mRasterLayer->greenBandName() ) );
739739
cboBlue->setCurrentIndex( cboBlue->findText( mRasterLayer->blueBandName() ) );
740+
cboGray->setCurrentIndex( cboGray->findText( mRasterLayer->grayBandName() ) );
740741

741742
//Display the current default contrast enhancement algorithm
742743
mDefaultContrastEnhancementAlgorithm = myQSettings.value( "/Raster/defaultContrastEnhancementAlgorithm", "NoEnhancement" ).toString();

0 commit comments

Comments
 (0)
Please sign in to comment.