r14667 by jghali - fix ScCLocale restoring incorrectly LC_NUMERIC value when cLocale singleton is null
scribus-commit
scribus-commit at lists.scribus.net
Wed Feb 10 00:20:34 CET 2010
Revision: 14667
Author: jghali
Date: 2010-02-09T23:14:19.564474Z
Commit message: fix ScCLocale restoring incorrectly LC_NUMERIC value when cLocale singleton is null
Changeset:
M /trunk/Scribus/scribus/scclocale.cpp
Diffs:
Index: scribus/scclocale.cpp
===================================================================
--- scribus/scclocale.cpp (revision 14666)
+++ scribus/scclocale.cpp (revision 14667)
@@ -93,9 +93,11 @@
if(NULL == that()->cLocale)
{
// a sade workaround
+ double result(0.0);
setlocale(LC_NUMERIC, "C");
- return strtod(str, endptr);
+ result = strtod(str, endptr);
setlocale(LC_NUMERIC, "");
+ return result;
}
else
{
More information about the scribus-commit
mailing list