[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Mon May 12 18:00:51 PDT 2014


 sc/source/ui/view/output2.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 162029e55af8f681966497ab7f20277888eac478
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Mon May 12 20:59:29 2014 -0400

    fdo#78391: When numbers are auto-fit, reset clipping parameters.
    
    Else it would get processed further to a surprising result.
    
    Change-Id: I3d6f0d680e0c4c3ffe1d28dcbaf51a156f569359

diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 75efff3..c0d6473 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.


More information about the Libreoffice-commits mailing list