Skip to content
Permalink
Browse files

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 authored and nyalldawson committed Jul 24, 2020
1 parent a761eac commit c2f89cdbf884931917e3232d1ecf867412c8679d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsfieldexpressionwidget.cpp
@@ -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;

0 comments on commit c2f89cd

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