Skip to content
Permalink
Browse files

[processing] Correct order of expression scopes in widget wrapper exp…

…ression contexts
  • Loading branch information
nyalldawson committed Feb 12, 2019
1 parent 493aed5 commit 2180b63e355436ea721becee3fb0f79ce47dbe28
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/processing/qgsprocessingwidgetwrapper.cpp
@@ -237,9 +237,6 @@ QgsExpressionContext QgsAbstractProcessingParameterWidgetWrapper::createExpressi

QgsExpressionContext c = context->expressionContext();

if ( linkedVectorLayer() )
c << QgsExpressionContextUtils::layerScope( linkedVectorLayer() );

if ( mWidgetContext.model() )
{
const QgsProcessingAlgorithm *alg = nullptr;
@@ -259,6 +256,9 @@ QgsExpressionContext QgsAbstractProcessingParameterWidgetWrapper::createExpressi
c.setHighlightedFunctions( highlightedFunctions );
}

if ( linkedVectorLayer() )
c << QgsExpressionContextUtils::layerScope( linkedVectorLayer() );

return c;
}

0 comments on commit 2180b63

Please sign in to comment.
You can’t perform that action at this time.