There was an error while loading. Please reload this page.
2 parents 4306632 + a21fc5a commit a150865Copy full SHA for a150865
1 file changed
src/app/qgsfieldcalculator.cpp
@@ -94,6 +94,7 @@ void QgsFieldCalculator::accept()
94
95
QString calcString = builder->expressionText();
96
QgsExpression exp( calcString );
97
+ exp.setGeomCalculator( myDa );
98
99
if ( !mVectorLayer || !mVectorLayer->isEditable() )
100
return;
@@ -173,8 +174,6 @@ void QgsFieldCalculator::accept()
173
174
}
175
176
exp.setCurrentRowNumber( rownum );
- exp.setGeomCalculator( myDa );
177
-
178
QVariant value = exp.evaluate( &feature );
179
if ( exp.hasEvalError() )
180
{
0 commit comments