Skip to content

Commit

Permalink
Merge pull request #9571 from qgis/backport-9563-on-release-3_6
Browse files Browse the repository at this point in the history
Backport #9563 on release-3_6
  • Loading branch information
elpaso authored Mar 20, 2019
2 parents de8f540 + b09868a commit 885267d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgsrasterlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,11 @@ void QgsRasterLayerProperties::sync()
*/
void QgsRasterLayerProperties::apply()
{

// Do nothing on "bad" layers
if ( !mRasterLayer->isValid() )
return;

/*
* Legend Tab
*/
Expand Down Expand Up @@ -1193,7 +1198,7 @@ void QgsRasterLayerProperties::urlClicked( const QUrl &url )

void QgsRasterLayerProperties::mRenderTypeComboBox_currentIndexChanged( int index )
{
if ( index < 0 || mDisableRenderTypeComboBoxCurrentIndexChanged )
if ( index < 0 || mDisableRenderTypeComboBoxCurrentIndexChanged || ! mRasterLayer->renderer() )
{
return;
}
Expand Down

0 comments on commit 885267d

Please sign in to comment.