We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 082c6ba commit a21fc5aCopy full SHA for a21fc5a
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