summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2021-01-07 13:46:43 +0100
committerLászló Németh <nemeth@numbertext.org>2021-01-20 12:18:36 +0100
commiteedf45f6b18e3466caf72f7ee56856e4aae11cf6 (patch)
treeeabf73465a2698533327bb1c3ac56be6c45e4a87 /sw/qa/extras
parent9b19bf0283b569a5c134de6b5cce1d72d8f37879 (diff)
tdf#131540 DOCX export: fix OLE position in v:shape
If the OLE icon was anchored to page, it moved a bit, because exporting mso-position-horizontal-relative:text instead of mso-position-horizontal-relative:page in v:shape. Change-Id: I4eb7bdd648a9b9b6aee48782a0086e82cfc55107 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108938 Tested-by: Jenkins Reviewed-by: Balazs Varga <varga.balazs3@nisz.hu> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras')
-rwxr-xr-xsw/qa/extras/ooxmlexport/data/tdf131540.odtbin0 -> 36613 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport15.cxx9
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf131540.odt b/sw/qa/extras/ooxmlexport/data/tdf131540.odt
new file mode 100755
index 000000000000..541ab2093156
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf131540.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
index b363d261fbf7..997bf888e403 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
@@ -46,6 +46,15 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf123621, "tdf123621.docx")
"/wp:positionV/wp:posOffset", "1080135");
}
+DECLARE_OOXMLEXPORT_TEST(testTdf131540, "tdf131540.odt")
+{
+ // There are 2 OLEs test if one of them moved on save:
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("The shape1 moved on saving!", text::RelOrientation::PAGE_FRAME,
+ getProperty<sal_Int16>(getShape(1), "HoriOrientRelation"));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("The shape2 moved on saving!", text::RelOrientation::PAGE_FRAME,
+ getProperty<sal_Int16>(getShape(2), "HoriOrientRelation"));
+}
+
DECLARE_OOXMLEXPORT_TEST(testTdf131801, "tdf131801.docx")
{
CPPUNIT_ASSERT_EQUAL(1, getPages());