Make sure numeric conversions are not locale dependent

In [19024f72\lyxgit] this line was removed. Later this caused that floats were converted to strings using ','s instead of '.'s. Readding this line fixes this.
This commit is contained in:
Vincent van Ravesteijn 2013-06-03 17:58:06 +02:00
parent d20956594b
commit 9a6c402a82

View File

@ -188,6 +188,7 @@ void setLocale()
} }
Messages::guiLanguage(fromqstr(theLocale.name())); Messages::guiLanguage(fromqstr(theLocale.name()));
QLocale::setDefault(theLocale); QLocale::setDefault(theLocale);
setlocale(LC_NUMERIC, "C");
} }