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

Michael Stahl mstahl at redhat.com
Fri Feb 24 13:12:29 UTC 2017


 sw/source/core/layout/paintfrm.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit bdef778d322a0d0c0d87dd476888e818487dcb3a
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Feb 24 14:03:49 2017 +0100

    sw: re-add handling of Center footnote alignment
    
    ... that was erroneously removed from SwFootnoteContFrame::PaintLine().
    
    Fixes the assert when loading tdf96579-1.odt.
    
    (regression from f052855343430327d3f92a66e14e9a445ee5fa0a)
    
    Change-Id: I33549bea3e5954fc347b05aa713e5982cde401ec

diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index e11c009..bbefcde 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -5573,6 +5573,8 @@ void SwFootnoteContFrame::PaintLine( const SwRect& rRect,
     SwTwips nX = aRectFnSet.GetPrtLeft(*this);
     switch ( rInf.GetAdj() )
     {
+        case css::text::HorizontalAdjust_CENTER:
+            nX += nPrtWidth/2 - nWidth/2; break;
         case css::text::HorizontalAdjust_RIGHT:
             nX += nPrtWidth - nWidth; break;
         case css::text::HorizontalAdjust_LEFT:


More information about the Libreoffice-commits mailing list