diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-07-04 21:18:14 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-07-04 21:18:14 +0300 |
commit | f8d532f8992f37ac2880f57e29b016f152a8c021 (patch) | |
tree | 6348867809a9c185cdec277a904f0c4c3a0a48d5 | |
parent | c00b4d50369b9a600c9f4debe31cb69662055923 (diff) |
Interestingly, struct lconv is empty in Android's C library
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 6bc67e8b4..07d6db793 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()); |