sd/qa/unit/data/odp/tdf169979.odp |binary sd/qa/unit/export-tests-ooxml4.cxx | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+)
New commits: commit da61cce89a31e9808c80b9025b8a4698664ad83c Author: Xisco Fauli <[email protected]> AuthorDate: Wed Jan 7 16:22:27 2026 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Jan 8 14:23:02 2026 +0100 tdf#169979: sd_export_tests-ooxml4: Add test Change-Id: Ie40e6c1d42d4be1caf23de8c0700a2dcfbef8002 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196728 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sd/qa/unit/data/odp/tdf169979.odp b/sd/qa/unit/data/odp/tdf169979.odp new file mode 100644 index 000000000000..9caf5c2185b7 Binary files /dev/null and b/sd/qa/unit/data/odp/tdf169979.odp differ diff --git a/sd/qa/unit/export-tests-ooxml4.cxx b/sd/qa/unit/export-tests-ooxml4.cxx index 0b8e835db37b..1b84317419c0 100644 --- a/sd/qa/unit/export-tests-ooxml4.cxx +++ b/sd/qa/unit/export-tests-ooxml4.cxx @@ -1328,6 +1328,29 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testTdf163483_export_math_fallback) "id", cNvPr_id); } +CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testTdf169979_missing_ppic) +{ + createSdImpressDoc("odp/tdf169979.odp"); + + save(TestFilter::PPTX); + + xmlDocUniquePtr pXml2 = parseExport(u"ppt/slides/slide2.xml"_ustr); + + // Without the fix in place, this test would have failed with + // - Expected: 1 + // - Actual : 0 + // - In <>, XPath '/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/a:graphicData/p:oleObj/p:pic/p:nvPicPr/p:cNvPr' number of nodes is incorrect + assertXPath(pXml2, + "/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/" + "a:graphicData/p:oleObj/p:pic/p:nvPicPr/p:cNvPr", + "name", u""); + + assertXPath(pXml2, + "/p:sld/p:cSld/p:spTree/p:graphicFrame/a:graphic/" + "a:graphicData/p:oleObj/p:pic/p:nvPicPr/p:cNvPr", + "descr", u""); +} + CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testEmptyChildTnLstElement) { createSdImpressDoc("odp/emptyChildTnLstElement.odp");
