Skip to content

Commit

Permalink
Use displayString to get the formatted value
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 9, 2018
1 parent 3e44db5 commit e56b72a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/editorwidgets/qgstexteditwrapper.cpp
Expand Up @@ -217,7 +217,9 @@ void QgsTextEditWrapper::setWidgetValue( const QVariant &val )
v = QgsApplication::nullRepresentation();
}
else
v = val.toString();
{
v = field().displayString( val );
}

if ( mTextEdit )
{
Expand Down

0 comments on commit e56b72a

Please sign in to comment.