Kaydet (Commit) 7c66e99f authored tarafından Eike Rathke's avatar Eike Rathke

simplify logic

Change-Id: I60726b445712cc15f8453812ce6313167314a8df
üst 5c6dd7a8
......@@ -2521,14 +2521,12 @@ bool SvNumberformat::GetOutputString(double fNumber,
nIx = 2;
}
}
if (nIx == 1 && fNumber < 0.0 && // negatives Format
IsNegativeRealNegative() ) // ohne Vorzeichen
if (fNumber < 0.0 &&
((nIx == 0 && IsNegativeRealNegative2()) || // 1st, usually positive subformat
(nIx == 1 && IsNegativeRealNegative()))) // 2nd, usually negative subformat
{
fNumber = -fNumber; // Vorzeichen eliminieren
fNumber = -fNumber; // eliminate sign
}
if(nIx == 0 &&
IsNegativeRealNegative2() && fNumber < 0.0)
fNumber = -fNumber;
*ppColor = NumFor[nIx].GetColor();
const ImpSvNumberformatInfo& rInfo = NumFor[nIx].Info();
const sal_uInt16 nAnz = NumFor[nIx].GetCount();
......
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