tdf#137850 writerfilter compatibilityMode15: ignore behindDoc if wrapped
commitaaf931335b39cc788a544994fb0712286c4d998e
authorJustin Luth <justin_luth@sil.org>
Mon, 9 Nov 2020 15:54:18 +0000 (9 18:54 +0300)
committerMiklos Vajna <vmiklos@collabora.com>
Thu, 12 Nov 2020 09:57:04 +0000 (12 10:57 +0100)
tree11f8a3d8456dc924a0f46ffd03b917e80364fb0b
parenta5389cb5ddcd72e494040e7a976c4f290e2da4cc
tdf#137850 writerfilter compatibilityMode15: ignore behindDoc if wrapped

This patch is based on testing results, since I couldn't find anything
in the documentation that indicated a change between Word 2010
and Word 2013. But the evidence is fairly clear I think.

To quote from MS documentation on relativeHeight:
> This attribute shall only indicate the Z-order with respect to other objects
> in the document which have an identical behindDoc attribute value.
> _All_ objects with a behindDoc value of false shall be displayed
> above elements with a value of true.

But only wrapNone makes mention of being affected by behindDoc,
so apparently MS decided to ignore it for some reason starting
in Word 2013. By simply changing the compatibiltyMode value to
one lower, Word 2013 again starts to honour the behindDoc setting.

Change-Id: I7ef40387707ab5376cf8fa4d8a208c5b6a8b37ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105486
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sw/qa/extras/ooxmlexport/data/tdf137850_compat14ZOrder.docx [new file with mode: 0644]
sw/qa/extras/ooxmlexport/data/tdf137850_compat15ZOrder.docx [new file with mode: 0755]
sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
writerfilter/source/dmapper/GraphicImport.cxx