sw/source/core/text/widorp.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 7e9b2b71db72b8c4c9c6ca83d08d3b6b05775ac8 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Mon Jul 17 21:37:07 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue Jul 18 11:14:35 2023 +0200
tdf#153319 sw: don't move footnotes to follow if portions in master SwTextFrameBreak::IsInside() may be called in different situations, during formatting it should be possible to move the footnotes, but when called from SwTextFrame::CalcPreps() this is problematic as it does not format the lines, it iterates over existing lines. The problem is that the footnote frame is moved to the follow's page, but the footnote portion remains on the master, and then the follow is joined while the footnote frame's mpReference still points to it. (regression from commit 391613785ae6fbb735cf7a86ea2f6a93161a8769) Change-Id: I4290dcd242a7f5292ad4f50c1407c9cd88e80a6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154557 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/source/core/text/widorp.cxx b/sw/source/core/text/widorp.cxx index 8a66e40f8234..720a88a1102a 100644 --- a/sw/source/core/text/widorp.cxx +++ b/sw/source/core/text/widorp.cxx @@ -182,6 +182,8 @@ bool SwTextFrameBreak::IsInside( SwTextMargin const &rLine ) const } } if (!bFit && rLine.MaybeHasHints() && m_pFrame->GetFollow() + // tdf#153319 RemoveFootnote only works if this frame doesn't + && !rLine.GetNext() // contain the footnote portion // if using same footnote container as the follow, pointless to try? && m_pFrame->FindFootnoteBossFrame() != m_pFrame->GetFollow()->FindFootnoteBossFrame()) {