diff options
author | Justin Luth <jluth@mail.com> | 2023-05-10 10:49:56 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2023-05-16 01:36:10 +0200 |
commit | 22950a9b008e1bb22fa9e54b5d45715e25fee764 (patch) | |
tree | 4015f99509ad879e19808ef427a19d32c7dd1686 /sw/source/core/doc/docbm.cxx | |
parent | 25fed4ae027b9680597ea498c25acc3f854db4bf (diff) |
tdf#154956 sw: delete bookmarks at end: fix crashtesting
This fixes LO 7.6 commit 21b1dd42e9a817ae9b68e9e13ea57ce2491940c6
wget https://bugs.documentfoundation.org/attachment.cgi?id=124859 \
-O ~/tdf99692-1.odt
./instdir/program/soffice --headless --convert-to odt ~/tdf99692-1.odt
sw/source/core/crsr/pam.cxx:268: void SwPosition::SetContent(sal_Int32):
Assertion `nNode.GetNode().GetContentNode()
&& "only valid to call this if we point to an SwContentNode"' failed.
Change-Id: Ic8280bf56f1e7f339fdff3e9591470bc74aa0d5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151639
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index ab5e544c2358..2d8a411a9c5d 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -2063,7 +2063,7 @@ void DelBookmarks( if( lcl_Greater( *pREnd, rStt, oStartContentIdx ) && lcl_Lower( *pREnd, rEnd, oEndContentIdx )) { pREnd->Assign( rStt ); - if( oStartContentIdx ) + if (oStartContentIdx && rStt.IsContentNode()) pREnd->SetContent( *oStartContentIdx ); else { |