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.
This commit is contained in:
wmayer
2022-03-26 17:44:05 +01:00
parent 57ce2213db
commit 8befdb2459

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