display real band number for multiband rasters when single band gray

drawing style used (patch by Bill Clay, fix #4138)
This commit is contained in:
Alexander Bruy 2012-01-15 12:35:12 +02:00
parent 4413a7db32
commit a6df30c99f

View File

@ -737,6 +737,7 @@ void QgsRasterLayerProperties::sync()
cboRed->setCurrentIndex( cboRed->findText( mRasterLayer->redBandName() ) );
cboGreen->setCurrentIndex( cboGreen->findText( mRasterLayer->greenBandName() ) );
cboBlue->setCurrentIndex( cboBlue->findText( mRasterLayer->blueBandName() ) );
cboGray->setCurrentIndex( cboGray->findText( mRasterLayer->grayBandName() ) );
//Display the current default contrast enhancement algorithm
mDefaultContrastEnhancementAlgorithm = myQSettings.value( "/Raster/defaultContrastEnhancementAlgorithm", "NoEnhancement" ).toString();