diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 12:29:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 14:57:16 +0200 |
commit | 06c680b8861e41bfa4ce95a69fa3feeb080bb350 (patch) | |
tree | 954acc83ab6295cc47122424acff969a3dde30e2 /sw | |
parent | 08a68d853cf0b3c9b1779ac2366cb502b85f9db6 (diff) |
reuse of pCont implies its not supposed to be deleted in this scope
Change-Id: I7c98c5e2a334966dc63a55fab96fa983ea542378
Reviewed-on: https://gerrit.libreoffice.org/58926
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/txtftn.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |