diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-22 01:57:18 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-22 10:46:55 +0200 |
commit | 238cfa9efa21f08514703ea6cc181ce02d8feb12 (patch) | |
tree | 0e27f50b32f6d5031f63b80be101b5c71eef8dd9 /sd/qa/unit/export-tests-ooxml2.cxx | |
parent | 7320a375143a9ecda0515f38b35cba38679d60ea (diff) |
tdf#112557: Subtitle placeholder shape leads to corrupted PPTX file
Change-Id: I26680ecdb5f0db4f27180c221de062341af0265c
Reviewed-on: https://gerrit.libreoffice.org/42611
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sd/qa/unit/export-tests-ooxml2.cxx')
-rw-r--r-- | sd/qa/unit/export-tests-ooxml2.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx index 512a4dc32b73..0135e52ab9db 100644 --- a/sd/qa/unit/export-tests-ooxml2.cxx +++ b/sd/qa/unit/export-tests-ooxml2.cxx @@ -110,6 +110,7 @@ public: void testTdf112088(); void testTdf112333(); void testTdf112552(); + void testTdf112557(); CPPUNIT_TEST_SUITE(SdOOXMLExportTest2); @@ -147,6 +148,7 @@ public: CPPUNIT_TEST(testTdf112088); CPPUNIT_TEST(testTdf112333); CPPUNIT_TEST(testTdf112552); + CPPUNIT_TEST(testTdf112557); CPPUNIT_TEST_SUITE_END(); @@ -1115,6 +1117,18 @@ void SdOOXMLExportTest2::testTdf112552() xDocShRef->DoClose(); } +void SdOOXMLExportTest2::testTdf112557() +{ + // Subtitle shape should be skipped by export. + ::sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("/sd/qa/unit/data/odp/tdf112557.odp"), ODP); + utl::TempFile tempFile; + xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile); + + xmlDocPtr pXmlDocContent = parseExport(tempFile, "ppt/slideMasters/slideMaster1.xml"); + assertXPath(pXmlDocContent, "/p:sldMaster/p:cSld/p:spTree/p:sp", 2); // title and object + xDocShRef->DoClose(); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest2); CPPUNIT_PLUGIN_IMPLEMENT(); |