[Libreoffice-commits] .: writerperfect/source

Tor Lillqvist tml at kemper.freedesktop.org
Mon Jul 4 11:24:09 PDT 2011


 writerperfect/source/filter/OdgGenerator.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f8d532f8992f37ac2880f57e29b016f152a8c021
Author: Tor Lillqvist <tml at iki.fi>
Date:   Mon Jul 4 21:18:14 2011 +0300

    Interestingly, struct lconv is empty in Android's C library

diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 6bc67e8..07d6db7 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -211,7 +211,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