[Libreoffice-commits] .: writerperfect/source
Tor Lillqvist
tml at kemper.freedesktop.org
Wed Oct 26 06:36:09 PDT 2011
writerperfect/source/filter/OdgGenerator.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3e3b809f5832b6e571ce5b016b743d7b8aa4bf27
Author: Tor Lillqvist <tml at iki.fi>
Date: Wed Oct 26 16:33:16 2011 +0300
No struct lconv::decimal_point in Android's libc
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 2d2beea..2ead68d 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -218,7 +218,11 @@ static WPXString doubleToString(const double value)
{
WPXString tempString;
tempString.sprintf("%.4f", value);
+#ifndef ANDROID
std::string decimalPoint(localeconv()->decimal_point);
+#else
+ std::string decimalPoint(".");
+#endif
if ((decimalPoint.size() == 0) || (decimalPoint == "."))
return tempString;
std::string stringValue(tempString.cstr());
More information about the Libreoffice-commits
mailing list