| commit | 445698dca110520673c89138b80e822a5d8086b5 | [log] |
|---|---|---|
| author | Caolán McNamara <caolan.mcnamara@collabora.com> | Thu Jun 01 20:49:22 2023 +0100 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Fri Jun 02 11:29:00 2023 +0200 |
| tree | f127e3b56888e8ab109796db292346116dbd4aa9 | |
| parent | d6fec3f3d0cd0b1faf85eb9113df54f4bff6521c [diff] |
Related: tdf#122081 null-deref of SwFootnoteFrame load doc, ctrl+end, ctrl+home, ctrl+6 enter 29, return, wheel scroll down 7 or 8 times and this null-deref Change-Id: I1963a89e3223de89f3414e435accd8d8ebfe80a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152511 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit 389a8d52d9961f89c0b2847b30ee1ca59a8fdc80) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152447 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/source/core/text/txtftn.cxx b/sw/source/core/text/txtftn.cxx index c86c1bc..035158e 100644 --- a/sw/source/core/text/txtftn.cxx +++ b/sw/source/core/text/txtftn.cxx
@@ -664,7 +664,7 @@ void SwTextFrame::ConnectFootnote( SwTextFootnote *pFootnote, const SwTwips nDea mbInFootnoteConnect = false; return; } else if( pSrcFrame ) else if (pSrcFrame && pFootnoteFrame) { SwFootnoteBossFrame *pFootnoteBoss = pFootnoteFrame->FindFootnoteBossFrame(); if( !pFootnoteBoss->IsInSct() ||