Skip to content

Commit 2180b63

Browse files
committedFeb 12, 2019
[processing] Correct order of expression scopes in widget wrapper expression contexts
1 parent 493aed5 commit 2180b63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/gui/processing/qgsprocessingwidgetwrapper.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,6 @@ QgsExpressionContext QgsAbstractProcessingParameterWidgetWrapper::createExpressi
237237

238238
QgsExpressionContext c = context->expressionContext();
239239

240-
if ( linkedVectorLayer() )
241-
c << QgsExpressionContextUtils::layerScope( linkedVectorLayer() );
242-
243240
if ( mWidgetContext.model() )
244241
{
245242
const QgsProcessingAlgorithm *alg = nullptr;
@@ -259,6 +256,9 @@ QgsExpressionContext QgsAbstractProcessingParameterWidgetWrapper::createExpressi
259256
c.setHighlightedFunctions( highlightedFunctions );
260257
}
261258

259+
if ( linkedVectorLayer() )
260+
c << QgsExpressionContextUtils::layerScope( linkedVectorLayer() );
261+
262262
return c;
263263
}
264264

0 commit comments

Comments
 (0)
Please sign in to comment.