mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
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
This commit is contained in:
parent
59d55fc44c
commit
8775aff71b
@ -94,11 +94,7 @@ class GeometryByExpression(QgisFeatureBasedAlgorithm):
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user