Skip to content
Permalink
Browse files

Fix crash when using 2.5D renderer with incompatible layer

Fixes #14814
  • Loading branch information
m-kuhn committed Jun 6, 2016
1 parent c739018 commit 87beec0309c15617594329966d1e1e8510bc578e
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/gui/symbology-ng/qgs25drendererwidget.cpp
@@ -96,10 +96,13 @@ void Qgs25DRendererWidget::updateRenderer()

void Qgs25DRendererWidget::apply()
{
QgsExpressionContextUtils::setLayerVariable( mLayer, "qgis_25d_height", mHeightWidget->currentText() );
QgsExpressionContextUtils::setLayerVariable( mLayer, "qgis_25d_angle", mAngleWidget->value() );
if ( mHeightWidget )
{
QgsExpressionContextUtils::setLayerVariable( mLayer, "qgis_25d_height", mHeightWidget->currentText() );
QgsExpressionContextUtils::setLayerVariable( mLayer, "qgis_25d_angle", mAngleWidget->value() );

emit layerVariablesChanged();
emit layerVariablesChanged();
}
}

QgsRendererV2Widget* Qgs25DRendererWidget::create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer )

0 comments on commit 87beec0

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