Skip to content
Permalink
Browse files

Update src/gui/symbology/qgslayerpropertieswidget.cpp

Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
  • Loading branch information
nyalldawson and nirvn committed Mar 31, 2021
1 parent 8f510cf commit 749f599a965e9f0c271896c4761b937f287f182b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/symbology/qgslayerpropertieswidget.cpp
@@ -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 ) );

0 comments on commit 749f599

Please sign in to comment.