Kaydet (Commit) 162029e5 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#78391: When numbers are auto-fit, reset clipping parameters.

Else it would get processed further to a surprising result.

Change-Id: I3d6f0d680e0c4c3ffe1d28dcbaf51a156f569359
üst 45bdefcc
......@@ -1842,7 +1842,11 @@ void ScOutputData::DrawStrings( bool bPixelToLogic )
(long) ( aVars.GetLeftTotal() * mnPPTX ) +
(long) ( aVars.GetMargin()->GetRightMargin() * mnPPTX );
if ( nNeededWidth <= aAreaParam.maClipRect.GetWidth() )
{
// Cell value is no longer clipped. Reset relevant parameters.
aAreaParam.mbLeftClip = aAreaParam.mbRightClip = false;
aAreaParam.mnLeftClipLength = aAreaParam.mnRightClipLength = 0;
}
// If the "###" replacement doesn't fit into the cells, no clip marks
// are shown, as the "###" already denotes too little space.
......
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