Skip to content
Browse files

[processing] Add some missing sources to expression contexts

  • Loading branch information
nyalldawson committed Feb 14, 2018
1 parent 8154a85 commit e0cf578096d481cab78599e34ee50a484b30f832
@@ -170,7 +170,7 @@ def prepareAlgorithm(self, parameters, context, feedback):
return True

def processAlgorithm(self, parameters, context, feedback):
expr_context = self.createExpressionContext(parameters, context)
expr_context = self.createExpressionContext(parameters, context, self.source)

# Group features in memory layers
@@ -115,7 +115,7 @@ def processAlgorithm(self, parameters, context, feedback):
if expression.hasParserError():
raise QgsProcessingException(expression.parserErrorString())

expressionContext = self.createExpressionContext(parameters, context)
expressionContext = self.createExpressionContext(parameters, context, source)
if not expression.prepare(expressionContext):
raise QgsProcessingException('Evaluation error: {0}').format(expression.evalErrorString()))

0 comments on commit e0cf578

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