Skip to content
Permalink
Browse files

Merge pull request #3390 from nirvn/raster_properties_fix_qt5

fix crash when opening raster properties window under qt5
  • Loading branch information
nyalldawson committed Aug 15, 2016
2 parents 2976646 + 5a25c71 commit 5d30b5f3efae8e02b360ee60bcca9b67b14074ca
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsrasterlayerproperties.cpp
@@ -253,9 +253,6 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
pyramidSentence4,
pyramidSentence5 ) );

tableTransparency->horizontalHeader()->setResizeMode( 0, QHeaderView::Stretch );
tableTransparency->horizontalHeader()->setResizeMode( 1, QHeaderView::Stretch );

//resampling
mResamplingGroupBox->setSaveCheckedState( true );
const QgsRasterRenderer* renderer = mRasterLayer->renderer();
@@ -481,6 +478,9 @@ void QgsRasterLayerProperties::setupTransparencyTable( int nBands )
tableTransparency->setHorizontalHeaderItem( 1, new QTableWidgetItem( tr( "To" ) ) );
tableTransparency->setHorizontalHeaderItem( 2, new QTableWidgetItem( tr( "Percent Transparent" ) ) );
}

tableTransparency->horizontalHeader()->setResizeMode( 0, QHeaderView::Stretch );
tableTransparency->horizontalHeader()->setResizeMode( 1, QHeaderView::Stretch );
}

void QgsRasterLayerProperties::populateTransparencyTable( QgsRasterRenderer* renderer )

0 comments on commit 5d30b5f

Please sign in to comment.
You can’t perform that action at this time.