Kaydet (Commit) 56d1c2e4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fdo#37925: don't show -0 as number in a cell

üst a3ddd330
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment