From 06c680b8861e41bfa4ce95a69fa3feeb080bb350 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 13 Aug 2018 12:29:57 +0100 Subject: reuse of pCont implies its not supposed to be deleted in this scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7c98c5e2a334966dc63a55fab96fa983ea542378 Reviewed-on: https://gerrit.libreoffice.org/58926 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/text/txtftn.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sw') diff --git a/sw/source/core/text/txtftn.cxx b/sw/source/core/text/txtftn.cxx index 78e30ed4f3e8..e07aac8691d9 100644 --- a/sw/source/core/text/txtftn.cxx +++ b/sw/source/core/text/txtftn.cxx @@ -689,6 +689,7 @@ void SwTextFrame::ConnectFootnote( SwTextFootnote *pFootnote, const SwTwips nDea // We have some room left, so the Footnote can grow if ( pFootnoteFrame->GetFollow() && nDiff > 0 ) { + SwFrameDeleteGuard aDeleteGuard(pCont); SwTwips nHeight = aRectFnSet.GetHeight(pCont->getFrameArea()); pBoss->RearrangeFootnotes( nDeadLine, false, pFootnote ); ValidateBodyFrame(); -- cgit