summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/output2.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-05-12 20:59:29 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-05-12 21:00:52 -0400
commit162029e55af8f681966497ab7f20277888eac478 (patch)
tree769fee6b5929296c3fe0c9abb8d32482828a0f17 /sc/source/ui/view/output2.cxx
parent45bdefccfc532d73bed2f8182543e13a18a7ac1c (diff)
fdo#78391: When numbers are auto-fit, reset clipping parameters.
Else it would get processed further to a surprising result. Change-Id: I3d6f0d680e0c4c3ffe1d28dcbaf51a156f569359
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r--sc/source/ui/view/output2.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 75efff3c0369..c0d6473fdccb 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -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.