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 197a00a commit e858a6d5acb6c2b90f7f0d839ef851b0489adc5b
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/gui/symbology-ng/qgs25drendererwidget.cpp
@@ -97,10 +97,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 e858a6d

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