diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-09 19:47:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-10 14:34:48 +0200 |
commit | 732d6b4209f24622972116505ad6b500e3ecc293 (patch) | |
tree | ac9b491d62a6918402351033fad9300b7a71a91b /sw | |
parent | 88aef1966ef1e5018bca54ccd59bb9e3c2f95b76 (diff) |
crashtesting: assert the condition making tdf122894-1.doc crash
sometimes it doesn't happen to crash, but its always dereferencing
a deleted frame
Change-Id: I056808398c97c5de12542c6c342e7d9d7e5195d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102334
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/objectformattertxtfrm.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 609b5a527ac1..18b882b1e20d 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -737,6 +737,7 @@ void SwObjectFormatterTextFrame::FormatAnchorFrameAndItsPrevs( SwTextFrame& _rAn { // #i44049# _rAnchorTextFrame.LockJoin(); + SwFrameDeleteGuard aDeleteGuard(&_rAnchorTextFrame); SwFrame* pColFrame = pColFrameOfAnchor->GetUpper()->GetLower(); while ( pColFrame != pColFrameOfAnchor ) { |