+ workaround for issue with group separator

This commit is contained in:
wmayer 2014-07-01 12:22:24 +02:00
parent e8724884d0
commit b83f07fe2e

View File

@ -350,6 +350,12 @@ Application::Application(bool GUIenabled)
throw Base::Exception("Invalid system settings");
}
#endif
// http://forum.freecadweb.org/viewtopic.php?f=10&t=6910
// A workaround is to disable the group separator for double-to-string conversion, i.e.
// setting the flag 'OmitGroupSeparator'.
QLocale loc = QLocale::system();
loc.setNumberOptions(QLocale::OmitGroupSeparator);
QLocale::setDefault(loc);
// setting up Python binding
Base::PyGILStateLocker lock;