Gui: [skip ci] fix locale issue with InputField

The change of 7de33a8fa9 added a regression as shown here: https://github.com/FreeCAD/FreeCAD/pull/6640#issuecomment-1079727756
Thus reverting it.
This commit is contained in:
wmayer
2022-03-26 17:44:05 +01:00
parent 9e7d9283aa
commit 63636c8082

View File

@@ -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('+'))