diff options
author | Justin Luth <jluth@mail.com> | 2024-09-11 19:27:35 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2024-09-13 03:46:23 +0200 |
commit | 343bfc6808320d435686527f3a28b88faa6a3398 (patch) | |
tree | 7b5df990b58294a9a4347192f6c8479cd16bc8da /sw/qa | |
parent | 0125a92e0168646f1f0b5dfdaabb841eb6358a78 (diff) |
tdf#162926 Revert "tdf#100037 vml import: add AS_CHAR images...
... to zOrder calculation"
This reverts my 24.8 commit 6c2ab0f3ca440f6e10b438e6ee0e235cbe155216.
Change-Id: Ia163c5adf7edfa70e49a85be6eea7908ae93ef79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173240
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf100037_inlineZOrder.docx | bin | 156588 -> 0 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport18.cxx | 12 | ||||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport9.cxx | 4 |
3 files changed, 2 insertions, 14 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf100037_inlineZOrder.docx b/sw/qa/extras/ooxmlexport/data/tdf100037_inlineZOrder.docx Binary files differdeleted file mode 100644 index 5f3e9b358392..000000000000 --- a/sw/qa/extras/ooxmlexport/data/tdf100037_inlineZOrder.docx +++ /dev/null diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx index b7c170b76cf2..529df29a0c9d 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport18.cxx @@ -1066,18 +1066,6 @@ DECLARE_OOXMLEXPORT_TEST(testTdf159158_zOrder_headerBehind2, "tdf159158_zOrder_h CPPUNIT_ASSERT(!getProperty<bool>(zOrder1, u"Opaque"_ustr)); } -DECLARE_OOXMLEXPORT_TEST(testTdf100037_inlineZOrder, "tdf100037_inlineZOrder.docx") -{ - // given a floating textbox followed by an inline image, - // an inline image should always be behind a heaven-layer floating object. - uno::Reference<beans::XPropertySet> zOrder0(getShape(1), uno::UNO_QUERY); - uno::Reference<beans::XPropertySet> zOrder1(getShape(2), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL(sal_Int32(0), getProperty<sal_Int32>(zOrder0, u"ZOrder"_ustr)); // lower - CPPUNIT_ASSERT_EQUAL(sal_Int32(1), getProperty<sal_Int32>(zOrder1, u"ZOrder"_ustr)); // higher - CPPUNIT_ASSERT_EQUAL(u"Image 2"_ustr, getProperty<OUString>(zOrder0, u"LinkDisplayName"_ustr)); - CPPUNIT_ASSERT_EQUAL(u"Frame1"_ustr, getProperty<OUString>(zOrder1, u"LinkDisplayName"_ustr)); -} - DECLARE_OOXMLEXPORT_TEST(testTdf155903, "tdf155903.odt") { // Without the accompanying fix in place, this test would have crashed, diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx index 5bfb414010a6..3dd12c57930a 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport9.cxx @@ -1233,7 +1233,7 @@ CPPUNIT_TEST_FIXTURE(Test, testActiveXControlAlign) CPPUNIT_ASSERT_EQUAL(2, getShapes()); CPPUNIT_ASSERT_EQUAL(1, getPages()); // First check box aligned as a floating object - uno::Reference<drawing::XControlShape> xControlShape(getShape(2), uno::UNO_QUERY_THROW); + uno::Reference<drawing::XControlShape> xControlShape(getShape(1), uno::UNO_QUERY_THROW); // Check whether we have the right control uno::Reference<beans::XPropertySet> xPropertySet(xControlShape->getControl(), uno::UNO_QUERY); @@ -1254,7 +1254,7 @@ CPPUNIT_TEST_FIXTURE(Test, testActiveXControlAlign) CPPUNIT_ASSERT_EQUAL(sal_Int32(2341), xShape->getPosition().Y); // Second check box aligned inline / as character - xControlShape.set(getShape(1), uno::UNO_QUERY_THROW); + xControlShape.set(getShape(2), uno::UNO_QUERY_THROW); // Check whether we have the right control xPropertySet.set(xControlShape->getControl(), uno::UNO_QUERY); |