sw floattable, DOCX import: clean up not needed dmapper-level anchor insert
commit6c67853b0798cf20fef02fcffd383e7f95cb66bd
authorMiklos Vajna <vmiklos@collabora.com>
Tue, 6 Jun 2023 06:22:53 +0000 (6 08:22 +0200)
committerAndras Timar <andras.timar@collabora.com>
Wed, 7 Jun 2023 20:59:02 +0000 (7 22:59 +0200)
tree948ad7c94076927edc20c9469a0a29710bf42e94
parent7b168fbe4e4a5feecdd946fef9c5c3e5107dc050
sw floattable, DOCX import: clean up not needed dmapper-level anchor insert

This was added in commit 1c99616f86f7d5b83b91edc225fc95fec227d710 (sw
floattable, crashtesting: fix PDF export of forum-mso-en3-26783.docx,
2023-05-02) to ensure that in case a floating table is not followed by a
text node, then inject one at a dmapper level.

Later commit 01ad8ec4bb5425446e95dbada81de435646824b4 (sw floattable:
fix lost tables around a floating table from DOCX, 2023-06-05) did the
same at a tokenizer level, as doing it in dmapper is too late in some
cases.

So keep the testcase from the first commit, but the changes to dmapper
can be dropped.

(cherry picked from commit 4c5438b2c447403194420b69311a81ea7d36e157)

Change-Id: If5b702d99e81a3f939491b7ff9de1128da765cbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152694
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
writerfilter/source/dmapper/DomainMapper.cxx
writerfilter/source/dmapper/DomainMapperTableManager.cxx
writerfilter/source/dmapper/DomainMapperTableManager.hxx