Skip to content

Commit

Permalink
Update src/gui/symbology/qgslayerpropertieswidget.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
  • Loading branch information
nyalldawson and nirvn committed Mar 31, 2021
1 parent 8f510cf commit 749f599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/symbology/qgslayerpropertieswidget.cpp
Expand Up @@ -264,7 +264,7 @@ QgsExpressionContext QgsLayerPropertiesWidget::createExpressionContext() const
expContext << symbolScope;
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QgsExpressionContext::EXPR_GEOMETRY_PART_COUNT, 1, true ) );
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QgsExpressionContext::EXPR_GEOMETRY_PART_NUM, 1, true ) );
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QgsExpressionContext::EXPR_GEOMETRY_RING_NUM, 1, true ) );
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QgsExpressionContext::EXPR_GEOMETRY_RING_NUM, 0, true ) );
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QgsExpressionContext::EXPR_GEOMETRY_POINT_COUNT, 1, true ) );
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QgsExpressionContext::EXPR_GEOMETRY_POINT_NUM, 1, true ) );
expContext.lastScope()->addVariable( QgsExpressionContextScope::StaticVariable( QStringLiteral( "symbol_layer_count" ), 1, true ) );
Expand Down

0 comments on commit 749f599

Please sign in to comment.