We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 069dc1b commit 2bf72b7Copy full SHA for 2bf72b7
src/gui/editorwidgets/qgstexteditwrapper.cpp
@@ -225,7 +225,7 @@ void QgsTextEditWrapper::setWidgetValue( const QVariant &val )
225
// when the user is editing the field value.
226
// We are checking for editable layer because in the form field context we do not
227
// want to strip the separator unless the layer is editable
228
- if ( layer() && layer()->isEditable() && ! QLocale().groupSeparator().isNull() && ( field().type() == QVariant::Int || field().type() == QVariant::Double || field().type() == QVariant::LongLong ) )
+ if ( layer() && layer()->isEditable() && ! QLocale().groupSeparator().isNull() && field().isNumeric() )
229
{
230
v = v.remove( QLocale().groupSeparator() );
231
}
0 commit comments