Skip to content
Permalink
Browse files

Use isNumeric

  • Loading branch information
elpaso committed Sep 2, 2018
1 parent 069dc1b commit 2bf72b7708078fd12da0fef33e793df757058e3a
Showing with 1 addition and 1 deletion.
  1. +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() );
}

0 comments on commit 2bf72b7

Please sign in to comment.
You can’t perform that action at this time.