Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 81b0e89

Browse files
m-kuhngithub-actions[bot]
authored andcommittedMar 27, 2023
Fix preview expression for feature lists using variables
1 parent 9f1e336 commit 81b0e89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/qgsfeatureexpressionvaluesgatherer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "qgslogger.h"
2222
#include "qgsvectorlayer.h"
2323
#include "qgsvectorlayerfeatureiterator.h"
24+
#include "qgsexpressioncontextutils.h"
2425

2526
#define SIP_NO_FILE
2627

@@ -52,6 +53,7 @@ class QgsFeatureExpressionValuesGatherer: public QThread
5253
const QStringList &identifierFields = QStringList() )
5354
: mSource( new QgsVectorLayerFeatureSource( layer ) )
5455
, mDisplayExpression( displayExpression.isEmpty() ? layer->displayExpression() : displayExpression )
56+
, mExpressionContext( QgsExpressionContextUtils::globalProjectLayerScopes( layer ) )
5557
, mRequest( request )
5658
, mIdentifierFields( identifierFields )
5759
{

0 commit comments

Comments
 (0)
Please sign in to comment.