We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6c85769 commit db0a6a5Copy full SHA for db0a6a5
src/app/qgsrasterlayerproperties.cpp
@@ -833,6 +833,11 @@ void QgsRasterLayerProperties::sync()
833
*/
834
void QgsRasterLayerProperties::apply()
835
{
836
+
837
+ // Do nothing on "bad" layers
838
+ if ( !mRasterLayer->isValid() )
839
+ return;
840
841
/*
842
* Legend Tab
843
@@ -1193,7 +1198,7 @@ void QgsRasterLayerProperties::urlClicked( const QUrl &url )
1193
1198
1194
1199
void QgsRasterLayerProperties::mRenderTypeComboBox_currentIndexChanged( int index )
1195
1200
1196
- if ( index < 0 || mDisableRenderTypeComboBoxCurrentIndexChanged )
1201
+ if ( index < 0 || mDisableRenderTypeComboBoxCurrentIndexChanged || ! mRasterLayer->renderer() )
1197
1202
1203
return;
1204
}
0 commit comments