Skip to content
Permalink
Browse files

Prepare expression for faster field calculation in attribute table di…

…alog
  • Loading branch information
nyalldawson committed Feb 19, 2018
1 parent 71a7de6 commit b759fc924af554dcaad7f2c2613e6123bbf7bbbb
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/qgsattributetabledialog.cpp
@@ -512,6 +512,7 @@ void QgsAttributeTableDialog::runFieldCalculation( QgsVectorLayer *layer, const
int rownum = 1;

QgsExpressionContext context( QgsExpressionContextUtils::globalProjectLayerScopes( layer ) );
exp.prepare( &context );

QgsField fld = layer->fields().at( fieldindex );

0 comments on commit b759fc9

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