diff options
author | Tünde Tóth <toth.tunde@nisz.hu> | 2021-01-06 13:24:10 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-01-15 10:49:54 +0100 |
commit | 7337e7e74d8bde77a56552bcb7b40bf1668c87b7 (patch) | |
tree | 48e1ce0de2ad974d27cf65b2a177e7a2de6ce1a8 /sd | |
parent | d5d905b480c2a9b1db982f2867e87b5c230d1ab9 (diff) |
tdf#61028 OOXML export: fix lost arcTo shape
a:custGeom was exported without the a:arcTo element
and its attributes.
Note: see customshapegeometry.cxx for import of a:arcTo
attributes.
Change-Id: I611ea9fb6a81d45cfd52a16abbb37071ea0ce7d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108874
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/data/pptx/arc-validiert.pptx | bin | 0 -> 14393 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml1.cxx | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/arc-validiert.pptx b/sd/qa/unit/data/pptx/arc-validiert.pptx Binary files differnew file mode 100644 index 000000000000..163f187b0bcc --- /dev/null +++ b/sd/qa/unit/data/pptx/arc-validiert.pptx diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx index ba04f02911be..6b782c3067a6 100644 --- a/sd/qa/unit/export-tests-ooxml1.cxx +++ b/sd/qa/unit/export-tests-ooxml1.cxx @@ -105,6 +105,7 @@ public: void testTdf128345GradientAxial(); void testTdf134969TransparencyOnColorGradient(); void testTdf136911(); + void testArcTo(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest1); @@ -154,6 +155,7 @@ public: CPPUNIT_TEST(testTdf128345GradientAxial); CPPUNIT_TEST(testTdf134969TransparencyOnColorGradient); CPPUNIT_TEST(testTdf136911); + CPPUNIT_TEST(testArcTo); CPPUNIT_TEST_SUITE_END(); @@ -1279,6 +1281,22 @@ void SdOOXMLExportTest1::testTdf134969TransparencyOnColorGradient() assertXPath(pXmlDoc, sPathStart + "/a:gsLst/a:gs[2]/a:srgbClr/a:alpha", "val", "60000"); } +void SdOOXMLExportTest1::testArcTo() +{ + ::sd::DrawDocShellRef xDocShRef + = loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/pptx/arc-validiert.pptx"), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + xmlDocUniquePtr pXmlDoc = parseExport(tempFile, "ppt/slides/slide1.xml"); + const OString sPath("//a:custGeom/a:pathLst/a:path/a:arcTo"); + assertXPath(pXmlDoc, sPath, "wR", "3"); + assertXPath(pXmlDoc, sPath, "hR", "3"); + assertXPath(pXmlDoc, sPath, "stAng", "1800000"); + assertXPath(pXmlDoc, sPath, "swAng", "2700000"); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest1); CPPUNIT_PLUGIN_IMPLEMENT(); |