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 | 1b2ebc239dbe6e1afe2d1bd4c2a9b47163e632dd (patch) | |
tree | 65ed38231771949e8828c5bc9ff0355a9fa92c4c /writerperfect | |
parent | callcatcher: unused write methods (diff) | |
download | core-1b2ebc239dbe6e1afe2d1bd4c2a9b47163e632dd.tar.gz core-1b2ebc239dbe6e1afe2d1bd4c2a9b47163e632dd.zip |
Interestingly, struct lconv is empty in Android's C library
Diffstat (limited to 'writerperfect')
-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 6bc67e8b4c37..07d6db7933de 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()); |