[Libreoffice-commits] core.git: svl/source
Eike Rathke
erack at redhat.com
Thu Jan 14 12:42:21 PST 2016
svl/source/numbers/zformat.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 8b88219ae69e42b13e632e6f810d5e606627e55b
Author: Eike Rathke <erack at redhat.com>
Date: Thu Jan 14 21:40:34 2016 +0100
grml.. stupid oversight..
Change-Id: I95b27000adfd0a29ed6e462f972340eee31d3a0b
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 6d80c53..1590893 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,
More information about the Libreoffice-commits
mailing list