diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-12 13:26:35 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-09-26 11:38:08 +0200 |
commit | a5853d13d3cab93e666301e90da786d55d02f1ee (patch) | |
tree | 3376828def1b66b8ebb07b91f78bb8c958c3cd5f /sd | |
parent | 3a2da5ebadd45511b5505fb72d9ca2d4254304cc (diff) |
tdf#112088 gradient stop map -> multimap
When two gradientstops were set to position 50%
only one was stored and the exported file was
detected as broken by MSO.
Change-Id: I5fd1acde6051f734a5f3e4cff9bde01b675e1984
Reviewed-on: https://gerrit.libreoffice.org/42210
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/42473
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sd')
-rwxr-xr-x | sd/qa/unit/data/pptx/tdf112088.pptx | bin | 0 -> 30317 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf112088.pptx b/sd/qa/unit/data/pptx/tdf112088.pptx Binary files differnew file mode 100755 index 000000000000..5ad58192e5bb --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf112088.pptx diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 13accd5e5c13..eee4dadbbeb5 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -109,6 +109,7 @@ public: void testTdf112280(); void testTdf112552(); void testTdf112557(); + void testTdf112088(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -141,6 +142,7 @@ public: CPPUNIT_TEST(testTdf112280); CPPUNIT_TEST(testTdf112552); CPPUNIT_TEST(testTdf112557); + CPPUNIT_TEST(testTdf112088); CPPUNIT_TEST_SUITE_END(); @@ -886,6 +888,18 @@ void SdOOXMLExportTest2::testTdf112557() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testTdf112088() +{ + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/tdf112088.pptx"), PPTX); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + xDocShRef->DoClose(); + + // check gradient stops + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPathChildren(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp[3]/p:spPr/a:gradFill/a:gsLst", 2); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |