Skip to content

Commit e56b72a

Browse files
committed
Use displayString to get the formatted value
1 parent 3e44db5 commit e56b72a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gui/editorwidgets/qgstexteditwrapper.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ void QgsTextEditWrapper::setWidgetValue( const QVariant &val )
217217
v = QgsApplication::nullRepresentation();
218218
}
219219
else
220-
v = val.toString();
220+
{
221+
v = field().displayString( val );
222+
}
221223

222224
if ( mTextEdit )
223225
{

0 commit comments

Comments
 (0)