From b83f07fe2e346d88c3b14486002bd387fa4cf302 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 1 Jul 2014 12:22:24 +0200 Subject: [PATCH] + workaround for issue with group separator --- src/Gui/Application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 12a383f16..0fc346895 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -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;