Skip to content

Commit b628146

Browse files
jef-nalexbruy
authored andcommitted
fix #4647 (introduced in 3b9b2d - track backports please)
1 parent 9322a78 commit b628146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/qgsrasterlayerproperties.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ void QgsRasterLayerProperties::populateTransparencyTable()
325325
//Clear existsing color transparency list
326326
//NOTE: May want to just tableTransparency->clearContents() and fill back in after checking to be sure list and table are the same size
327327
QString myNumberFormatter;
328-
if ( rbtnThreeBand->isChecked() && QgsRasterLayer::PalettedColor != mRasterLayer->drawingStyle() &&
328+
if ( tabPageSymbology &&
329+
rbtnThreeBand->isChecked() &&
330+
QgsRasterLayer::PalettedColor != mRasterLayer->drawingStyle() &&
329331
QgsRasterLayer::PalettedMultiBandColor != mRasterLayer->drawingStyle() )
330332
{
331333
for ( int myTableRunner = tableTransparency->rowCount() - 1; myTableRunner >= 0; myTableRunner-- )

0 commit comments

Comments
 (0)