summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcvcastro@gmail.com>2015-03-02 21:39:53 -0400
committerAndras Timar <andras.timar@collabora.com>2015-03-05 13:53:04 +0100
commit79e9e78f9e9b0747d8e9c19cf4dd87df78773bcf (patch)
treef33f9465c9d71241c96068e4c905edbb555b47b0
parent0eed9d22dfc7ff8fa3d822ffd12b2615eab1a513 (diff)
Resolves tdf#84012 FORMATTING: Partially missing text in shrink-to-fit cells
Change-Id: I32f44acbcf5a6aed4d9f7442ad7212af31073352 Reviewed-on: https://gerrit.libreoffice.org/14723 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 4acffa65b58c8bd359215345dca2c61e2c5ceba5)
-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 d14c901c79e2..740bfb531e0e 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1777,7 +1777,11 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
// If even at half the size the font still isn't rendered smaller,
// fall back to normal clipping (showing ### for numbers).
if ( nNewSize <= nAvailable )
+ {
+ // Reset relevant parameters.
aAreaParam.mbLeftClip = aAreaParam.mbRightClip = false;
+ aAreaParam.mnLeftClipLength = aAreaParam.mnRightClipLength = 0;
+ }
pOldPattern = NULL;
}