Skip to content

Commit

Permalink
editor widget: don't reset empty strings to null, if default value is…
Browse files Browse the repository at this point in the history
… null (fixes #13546)
  • Loading branch information
jef-n committed Oct 9, 2015
1 parent 910dc16 commit 3beaed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgstexteditwrapper.cpp
Expand Up @@ -59,7 +59,7 @@ QVariant QgsTextEditWrapper::value()
v == QSettings().value( "qgis/nullValue", "NULL" ).toString() )
return QVariant( field().type() );

if ( v == defaultValue().toString() )
if ( !defaultValue().isNull() && v == defaultValue().toString() )
{
return defaultValue();
}
Expand Down

0 comments on commit 3beaed9

Please sign in to comment.