diff options
author | Eike Rathke <erack@redhat.com> | 2016-01-14 21:40:34 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-01-14 21:41:35 +0100 |
commit | 8b88219ae69e42b13e632e6f810d5e606627e55b (patch) | |
tree | 2631692432a186d4d50cc9647f216f46e29bc76c /svl | |
parent | f19b4826c44e9e5f54b968fef59a3fcd3007d522 (diff) |
grml.. stupid oversight..
Change-Id: I95b27000adfd0a29ed6e462f972340eee31d3a0b
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 6d80c53bedd1..1590893423c5 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -2125,7 +2125,11 @@ bool SvNumberformat::GetOutputString(double fNumber, if (!(fNumber < 0.0)) fNumber = -fNumber; // do not display -0.0 } - if (fNumber < EXP_LOWER_BOUND && fNumber > -EXP_LOWER_BOUND) + if (fNumber == 0.0) + { + OutString = "0"; + } + else if (fNumber < EXP_LOWER_BOUND && fNumber > -EXP_LOWER_BOUND) { OutString = ::rtl::math::doubleToUString( fNumber, rtl_math_StringFormat_E2, |