Skip to content
Permalink
Browse files

Update src/gui/symbology/qgssymbollayerwidget.cpp

Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
  • Loading branch information
nyalldawson and nirvn committed Mar 31, 2021
1 parent 749f599 commit 348bf863ecd56efbf1a888d84fb9bb9138d4fa46
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/symbology/qgssymbollayerwidget.cpp
@@ -79,7 +79,7 @@ QgsExpressionContext QgsSymbolLayerWidget::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 348bf86

Please sign in to comment.