r14666 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:19 CET 2010
Revision: 14666
Author: jghali
Date: 2010-02-09T23:13:56.201635Z
Commit message: fix ScCLocale restoring incorrectly LC_NUMERIC value when cLocale singleton is null
Changeset:
M /branches/Version135/Scribus/scribus/scclocale.cpp
Diffs:
Index: scribus/scclocale.cpp
===================================================================
--- scribus/scclocale.cpp (revision 14665)
+++ scribus/scclocale.cpp (revision 14666)
@@ -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