sw/source/core/crsr/bookmark.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 6c319584fbfeec3667080decd9af4ba54b434ee7 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Thu Jan 19 18:45:39 2023 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Jan 20 14:44:05 2023 +0000 sw: crashtesting forum-mso-en-12641.docx, fix assert in FindFieldSep The fieldmark may overlap a section; at the start was considered here, but at the end was not and so the assertion wrongly fired. Change-Id: I118bc36c2d9c4ca7028a583278d0f193537c4cb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145826 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> (cherry picked from commit 959f64dbb85d1785dbea5a4d2a41519c98769a7c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145801 Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/core/crsr/bookmark.cxx b/sw/source/core/crsr/bookmark.cxx index feb7e77a3163..2520e6312b79 100644 --- a/sw/source/core/crsr/bookmark.cxx +++ b/sw/source/core/crsr/bookmark.cxx @@ -113,7 +113,8 @@ namespace sw::mark } else { - assert(pNode->IsNoTextNode() || pNode->IsSectionNode()); + assert(pNode->IsNoTextNode() || pNode->IsSectionNode() + || (pNode->IsEndNode() && pNode->StartOfSectionNode()->IsSectionNode())); } } assert(ret); // must have found it