Skip to content
Permalink
Browse files

Fix error in Geometry by Expression

We can't depend on preparing the expression, as we may not have
enough context to do this during the algorithm preparation step
  • Loading branch information
nyalldawson committed Nov 23, 2017
1 parent 59d55fc commit 8775aff71b77b80bdef950f62946016800d7015e
Showing with 1 addition and 5 deletions.
  1. +1 −5 python/plugins/processing/algs/qgis/GeometryByExpression.py
@@ -94,11 +94,7 @@ def prepareAlgorithm(self, parameters, context, feedback):
return False

self.expression_context = self.createExpressionContext(parameters, context)

if not self.expression.prepare(self.expression_context):
feedback.reportErro(
self.tr('Evaluation error: {0}').format(self.expression.evalErrorString()))
return False
self.expression.prepare(self.expression_context)

return True

0 comments on commit 8775aff

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