Skip to content

Commit

Permalink
Fix string values are always repeated in expression build field value…
Browse files Browse the repository at this point in the history
…s list
  • Loading branch information
nyalldawson committed Jun 21, 2019
1 parent bb622c8 commit 4c2a533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -482,7 +482,7 @@ void QgsExpressionBuilderWidget::fillFieldValues( const QString &fieldName, int
strValue = '\'' + value.toString().replace( '\'', QLatin1String( "''" ) ) + '\'';

QString representedValue = formatter->representValue( mLayer, fieldIndex, setup.config(), QVariant(), value );
if ( representedValue != strValue )
if ( representedValue != value.toString() )
representedValue = representedValue + QStringLiteral( " [" ) + strValue + ']';

QStandardItem *item = new QStandardItem( representedValue );
Expand Down

0 comments on commit 4c2a533

Please sign in to comment.