Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix QgsFieldExpressionWidget generates an invalid expression when a f…
…ield name has a space and the expression button is clicked
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jul 24, 2020
1 parent a761eac commit c2f89cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfieldexpressionwidget.cpp
Expand Up @@ -230,7 +230,7 @@ void QgsFieldExpressionWidget::setExpression( const QString &expression )

void QgsFieldExpressionWidget::editExpression()
{
QString currentExpression = currentText();
QString currentExpression = asExpression();
QgsVectorLayer *vl = layer();

QgsExpressionContext context = mExpressionContextGenerator ? mExpressionContextGenerator->createExpressionContext() : mExpressionContext;
Expand Down

0 comments on commit c2f89cd

Please sign in to comment.