tdf#149498 sw: fix Undo crash at bookmark over cells
commit3ec09683bcbf85e42940108fa2ec0c49ad7d3d8b
authorLászló Németh <nemeth@numbertext.org>
Fri, 21 Jul 2023 15:35:12 +0000 (21 17:35 +0200)
committerMichael Stahl <michael.stahl@allotropia.de>
Mon, 24 Jul 2023 10:01:38 +0000 (24 12:01 +0200)
treeac1d98e2b45adf96b755b80fa38d8a927aad7787
parent9ee472895bbebe7d753e37879ec987b07cd11a2c
tdf#149498 sw: fix Undo crash at bookmark over cells

Importing DOCX files with bookmarks between w:p paragraph
elements resulted bookmark ranges over cell boundaries
within text tables, causing crash with Undo.

Partial revert of commit 9e1e88ad5cf2dc0e9b188c60930445652a6c7519
to avoid bookmark ranges over cell boundaries, creating
only collapsed bookmarks here, as before.

Regression from commit 9e1e88ad5cf2dc0e9b188c60930445652a6c7519
"tdf#145720 DOCX export: fix loss of tracked moving".

Note: to avoid of another assertion, skip testing with
debug builds.

Change-Id: I3ed6daa55323f20130fcee6cc24d00a480731d0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154743
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
(cherry picked from commit b081a818b1c3024d7ec5cc5b3a251109a1d9b08d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154708
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
sw/qa/extras/uiwriter/data/tdf149498.docx [new file with mode: 0644]
sw/qa/extras/uiwriter/uiwriter5.cxx
writerfilter/source/dmapper/DomainMapper_Impl.cxx