diff options
author | Justin Luth <justin.luth@collabora.com> | 2021-04-09 11:06:13 +0200 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2021-04-09 14:48:03 +0200 |
commit | 32013f0dccde8407aa907112399dc2a9efb7f906 (patch) | |
tree | 6f2f62d214d92eb1ffd52feacfa20d954d3b55ac /sw/qa | |
parent | 7f3deaa2963d3b240b4770d6494d539de68a310f (diff) |
tdf#120768 doc import: z-order background shapes behind others
Interestingly, there were NO ww8export examples
where a background item was attempting to insert
itself after a foreground one.
I think GENERALLY the order of shapes in a DOC
file format is from bottom to top - and so it
just worked by accident.
Change-Id: If5226b4ad071455d1e3c30e334676cc5932a1064
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113837
Tested-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ww8import/data/tdf120768_zOrder.doc | bin | 0 -> 53760 bytes | |||
-rw-r--r-- | sw/qa/extras/ww8import/ww8import.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8import/data/tdf120768_zOrder.doc b/sw/qa/extras/ww8import/data/tdf120768_zOrder.doc Binary files differnew file mode 100644 index 000000000000..b70a7d840b6d --- /dev/null +++ b/sw/qa/extras/ww8import/data/tdf120768_zOrder.doc diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx index a9b75588a1b3..ccae8638a2c3 100644 --- a/sw/qa/extras/ww8import/ww8import.cxx +++ b/sw/qa/extras/ww8import/ww8import.cxx @@ -262,6 +262,14 @@ DECLARE_WW8IMPORT_TEST(testTdf110987, "tdf110987") CPPUNIT_ASSERT(sFilterName != "MS Word 97 Vorlage"); } +DECLARE_WW8IMPORT_TEST(testTdf120768_zOrder, "tdf120768_zOrder.doc") +{ + //The blue shape was covering everything (highest zorder = 2) instead of the lowest(0) + uno::Reference<drawing::XShape> xShape(getShapeByName(u"Picture 2"), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_uInt32(0), getProperty<sal_uInt32>(xShape, "ZOrder")); +} + + // tests should only be added to ww8IMPORT *if* they fail round-tripping in ww8EXPORT CPPUNIT_PLUGIN_IMPLEMENT(); |