Skip to content

Commit

Permalink
Update src/gui/qgsattributeform.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
domi4484 and m-kuhn committed Dec 9, 2021
1 parent 4f0b33e commit 117b504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.cpp
Expand Up @@ -668,7 +668,7 @@ void QgsAttributeForm::updateValuesDependenciesVirtualFields( const int originId
// Update value
QgsExpressionContext context = createExpressionContext( updatedFeature );
QgsExpression exp( mLayer->expressionField( eww->fieldIdx() ) );
QVariant value = exp.evaluate( &context );
const QVariant value = exp.evaluate( &context );
updatedFeature.setAttribute( eww->fieldIdx(), value );
eww->setValue( value );
}
Expand Down

0 comments on commit 117b504

Please sign in to comment.