diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-08 01:33:38 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-08 04:51:43 +0100 |
commit | 56d1c2e4ec25fb13a75f3dfde8efc2c6f694358b (patch) | |
tree | 20e6c16ff068597f6a8cdbc3067b3862c229a466 /svl | |
parent | a3ddd330bd7f60402e17fe74324c64a394516a01 (diff) |
fdo#37925: don't show -0 as number in a cell
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 9784d4d9b9c1..d9d71d59c818 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -2252,7 +2252,7 @@ bool SvNumberformat::GetOutputString(double fNumber, { if (rScan.GetStandardPrec() == SvNumberFormatter::UNLIMITED_PRECISION) { - bool bSign = ::rtl::math::isSignBitSet(fNumber); + bool bSign = ::rtl::math::isSignBitSet(fNumber) && fNumber != 0.0; if (bSign) fNumber = -fNumber; ImpGetOutputStdToPrecision(fNumber, OutString, 10); // Use 10 decimals for general 'unlimited' format. |