summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-12-03 21:00:37 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-12-04 00:41:12 +0100
commita172f854b6e1d61bf0fe0fe4efc3058bb7a760bf (patch)
tree7f6043608a35f5b435c277af4d88753df5d40bbf
parentbf3f6b7cf952db4d1dee75daeeda218978f6af54 (diff)
tdf#74693: Footnotes text appearing above footnote separator line
When invalidate a footnoteframe, invalidate also the lower textframe, so it will be recalculated before text rendering. Change-Id: I5fd29bdad4afae4947e0701e5727482958453d03 Reviewed-on: https://gerrit.libreoffice.org/45756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--sw/source/core/layout/frmtool.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 2276f7fa2b99..a9ac9b7c6ea5 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -545,7 +545,11 @@ SwLayNotify::~SwLayNotify()
const bool bSize = pLay->getFrameArea().SSize() != maFrame.SSize();
if ( bPos && pLay->Lower() && !IsLowersComplete() )
+ {
pLay->Lower()->InvalidatePos();
+ if(pLay->Lower()->IsFootnoteFrame())
+ static_cast<SwFootnoteFrame*>(pLay->Lower())->Lower()->InvalidatePos();
+ }
if ( bPrtPos )
pLay->SetCompletePaint();