Skip to content
Permalink
Browse files

fix crash when opening raster properties window under qt5

  • Loading branch information
nirvn committed Aug 13, 2016
1 parent a064c0a commit 5a25c71eb6f887f03cf118522d58440a295ded35
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 5a25c71

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