summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/layout/calcmove.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx
index 2fdbb6b4f62f..662d1a5e61f8 100644
--- a/sw/source/core/layout/calcmove.cxx
+++ b/sw/source/core/layout/calcmove.cxx
@@ -1683,7 +1683,8 @@ void SwContentFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/)
aRectFnSet.Refresh(this);
if (!bMovedFwd && bFootnote && GetIndPrev() != pPre)
{ // SwFlowFrame::CutTree() could have formatted and deleted pPre
- auto const pPrevFootnoteFrame(static_cast<SwFootnoteFrame const*>(GetUpper())->GetMaster());
+ auto const pPrevFootnoteFrame(static_cast<SwFootnoteFrame const*>(
+ FindFootnoteFrame())->GetMaster());
bool bReset = true;
if (pPrevFootnoteFrame)
{ // use GetIndNext() in case there are sections