diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-22 01:17:14 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-22 02:29:12 +0200 |
commit | 31919b8909fa7b34412dd52c3d4dff17bc5b6fab (patch) | |
tree | e73aaec7ee71950f3ed1de1587121dc459b1a637 /sd | |
parent | 46fa042b94a0364c09482e8a09f8874119db231c (diff) |
tdf#112552: Shape's gray background is lost after saving to PPTX
Change-Id: I30f371ad301eede82ddcece4d91ffcd32e164115
Reviewed-on: https://gerrit.libreoffice.org/42598
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sd')
-rwxr-xr-x | sd/qa/unit/data/odp/tdf112552.odp | bin | 0 -> 11331 bytes | |||
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf112552.odp b/sd/qa/unit/data/odp/tdf112552.odp Binary files differnew file mode 100755 index 000000000000..df4afb76b14a --- /dev/null +++ b/sd/qa/unit/data/odp/tdf112552.odp diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 72d0cd04306c..512a4dc32b73 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 testTdf112088(); void testTdf112333(); + void testTdf112552(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -145,6 +146,7 @@ public: CPPUNIT_TEST(testTdf112280); CPPUNIT_TEST(testTdf112088); CPPUNIT_TEST(testTdf112333); + CPPUNIT_TEST(testTdf112552); CPPUNIT_TEST_SUITE_END(); @@ -1098,6 +1100,21 @@ void SdOOXMLExportTest2::testTdf112333() CPPUNIT_ASSERT_EQUAL(OUString("fillcolor"), sAttributeName); } +void SdOOXMLExportTest2::testTdf112552() +{ + // Background fill was not displayed, but it was because of the wrong geometry + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/odp/tdf112552.odp"), ODP); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:custGeom/a:pathLst/a:path", "w", "21600"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:custGeom/a:pathLst/a:path", "h", "21600"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "x", "21600"); + assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:sp/p:spPr/a:custGeom/a:pathLst/a:path/a:lnTo[1]/a:pt", "y", "0"); + xDocShRef->DoClose(); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |