Skip to content
Permalink
Browse files

Merge pull request #510 from matthias-kuhn/field-calculator-perf

[FIX #7533] Field calculator is slow
  • Loading branch information
jef-n committed Apr 8, 2013
2 parents 4306632 + a21fc5a commit a150865e2b518638956c5640d938e97934e694ea
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgsfieldcalculator.cpp
@@ -94,6 +94,7 @@ void QgsFieldCalculator::accept()

QString calcString = builder->expressionText();
QgsExpression exp( calcString );
exp.setGeomCalculator( myDa );

if ( !mVectorLayer || !mVectorLayer->isEditable() )
return;
@@ -173,8 +174,6 @@ void QgsFieldCalculator::accept()
}

exp.setCurrentRowNumber( rownum );
exp.setGeomCalculator( myDa );

QVariant value = exp.evaluate( &feature );
if ( exp.hasEvalError() )
{

0 comments on commit a150865

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