v2 tdf#134951 docxexport: don't lose postponed comment
commit46b62f7777c6acdc2c94dc4b2ab79d38a10c49f9
authorJustin Luth <justin_luth@sil.org>
Thu, 20 Jan 2022 11:33:15 +0000 (20 13:33 +0200)
committerJustin Luth <jluth@mail.com>
Thu, 27 Jan 2022 18:13:45 +0000 (27 19:13 +0100)
tree852494f6e01a0147e47a5883d26ad078b2c42705
parent67478f9d637096781c9e3df64896b1ddaccc331b
v2 tdf#134951 docxexport: don't lose postponed comment

This patch basically reverts and re-writes the original fix.

Prior to mstahl's 7.4 commit f261fae4af72b1328bc3e93fc52a9a24ce0975b3
   tdf#143039 tdf#143106 sw: DOCX export: don't export duplicate flys
ooxmlexport5's comment would only last for one or two round-trips,
and then be lost after that. It kept moving around into things
like the fly itself, or the footnote.
With mstahl's commit, it was lost immediately (same as Word 2016),
and so the ooxmlexport5 unit test that broke was commented out.

Change-Id: Ia7e881143f1243a3ab81bb94c02b57189f3730f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128703
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Justin Luth <jluth@mail.com>
sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
sw/source/filter/ww8/wrtw8nds.cxx
sw/source/filter/ww8/wrtww8.hxx