summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-02-24 14:03:49 +0100
committerMichael Stahl <mstahl@redhat.com>2017-02-24 14:08:38 +0100
commitbdef778d322a0d0c0d87dd476888e818487dcb3a (patch)
tree64e7726e3c1a568c69acaff70a9e0972414c0ab7 /sw
parent7737457558cafe35c2efe613b4be8ad7abe50dea (diff)
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
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index e11c00954ae2..bbefcde3393c 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: