summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-06 21:04:23 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2023-02-09 10:59:11 +0000
commit51512d7bce52002ca29c0e6c5264ac34166ede85 (patch)
treec60d495a10001bdf88cda3181eae35a9aa3e7828
parentfix online crash in WIndow::IsTracking (diff)
downloadcore-51512d7bce52002ca29c0e6c5264ac34166ede85.tar.gz
core-51512d7bce52002ca29c0e6c5264ac34166ede85.zip
Related: tdf#153319 don't destroy frame with IsDeleteForbidden set
not sufficient on its own to fix this crash. Change-Id: Ibd8b68d7e007d8a22770b3d73f0d17a1869cf279 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146598 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit df2ad816288a4729c9cea8d14b7d590ac271d18b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146626 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--sw/source/core/layout/ftnfrm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx
index 9cc83c1bfc18..6fb88185a6f2 100644
--- a/sw/source/core/layout/ftnfrm.cxx
+++ b/sw/source/core/layout/ftnfrm.cxx
@@ -2420,7 +2420,8 @@ void SwFootnoteBossFrame::RearrangeFootnotes( const SwTwips nDeadLine, const boo
if ( !bLock && bUnlockLastFootnoteFrame &&
!pLastFootnoteFrame->GetLower() &&
!pLastFootnoteFrame->IsColLocked() &&
- !pLastFootnoteFrame->IsBackMoveLocked() )
+ !pLastFootnoteFrame->IsBackMoveLocked() &&
+ !pLastFootnoteFrame->IsDeleteForbidden() )
{
pLastFootnoteFrame->Cut();
SwFrame::DestroyFrame(pLastFootnoteFrame);