From 8befdb24598c485870ae985724b6cbcded52ccad Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 26 Mar 2022 17:44:05 +0100 Subject: [PATCH] Gui: [skip ci] fix locale issue with InputField The change of 746a2ae40ade added a regression as shown here: https://github.com/FreeCAD/FreeCAD/pull/6640#issuecomment-1079727756 Thus reverting it. --- src/Gui/InputField.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui/InputField.cpp b/src/Gui/InputField.cpp index 62c65832df..d03a521d4d 100644 --- a/src/Gui/InputField.cpp +++ b/src/Gui/InputField.cpp @@ -710,6 +710,7 @@ void InputField::wheelEvent (QWheelEvent * event) void InputField::fixup(QString& input) const { + input.remove(locale().groupSeparator()); if (locale().negativeSign() != QLatin1Char('-')) input.replace(locale().negativeSign(), QLatin1Char('-')); if (locale().positiveSign() != QLatin1Char('+'))