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:
@@ -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('+'))
|
||||
|
||||
Reference in New Issue
Block a user