Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/gui/editorwidgets/qgstexteditwrapper.cpp
|
@@ -225,7 +225,7 @@ void QgsTextEditWrapper::setWidgetValue( const QVariant &val ) |
|
|
// when the user is editing the field value. |
|
|
// We are checking for editable layer because in the form field context we do not |
|
|
// want to strip the separator unless the layer is editable |
|
|
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() ) |
|
|
{ |
|
|
v = v.remove( QLocale().groupSeparator() ); |
|
|
} |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.