diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2021-03-08 16:07:59 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-03-19 16:55:03 +0100 |
commit | 48f6ce530f3546570eabdf398388185ab988636b (patch) | |
tree | 0f21d63d1ab37726853192f9ffd3904d7e0ae299 /sd/qa | |
parent | 13ea8a2f245fd07056e9a86ed3860109950470ef (diff) |
tdf#131905 PPTX table export: fix vertical alignment
Table cells lost their vertical alignment.
Change-Id: Id5ca22550b5613566d7ea2a93e8a36fdca31860d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112171
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/data/pptx/tdf131905.pptx | bin | 0 -> 35474 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 28 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf131905.pptx b/sd/qa/unit/data/pptx/tdf131905.pptx Binary files differnew file mode 100644 index 000000000000..4d203510f093 --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf131905.pptx diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 9523d5718a46..3d8e93b8b003 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -87,6 +87,7 @@ static void assertMotionPath(const OUString &rStr1, const OUString &rStr2, const class SdOOXMLExportTest2 : public SdModelTestBaseXML { public: + void testTdf131905(); void testTdf93883(); void testTdf91378(); void testBnc822341(); @@ -211,6 +212,7 @@ public: CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); + CPPUNIT_TEST(testTdf131905); CPPUNIT_TEST(testTdf93883); CPPUNIT_TEST(testTdf91378); CPPUNIT_TEST(testBnc822341); @@ -366,6 +368,32 @@ public: }; +void SdOOXMLExportTest2::testTdf131905() +{ + ::sd::DrawDocShellRef xDocShRef + = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf131905.pptx"), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + + xmlDocUniquePtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath( + pXmlDocContent, + "/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/a:graphicData/a:tbl/a:tr[1]/a:tc/a:tcPr", + "anchor", "t"); + + assertXPath( + pXmlDocContent, + "/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/a:graphicData/a:tbl/a:tr[2]/a:tc/a:tcPr", + "anchor", "ctr"); + + assertXPath( + pXmlDocContent, + "/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/a:graphicData/a:tbl/a:tr[3]/a:tc/a:tcPr", + "anchor", "b"); + + xDocShRef->DoClose(); +} + void SdOOXMLExportTest2::testTdf93883() { ::sd::DrawDocShellRef xDocShRef = loadURL( m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/tdf93883.odp"), ODP); |