sd/qa/unit/data/ppt/tdf168786.ppt |binary sd/qa/unit/export-tests-ooxml1.cxx | 16 ++++++++++++++++ 2 files changed, 16 insertions(+)
New commits: commit da53453aa822abe6ffbc8bac20be8b1e6835d91a Author: Xisco Fauli <[email protected]> AuthorDate: Thu Oct 30 13:36:19 2025 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Oct 30 15:53:27 2025 +0100 tdf#168786: sd_export_tests-ooxml1: Add test Change-Id: I3b3878234ac2f65e0d8362652c7d73d88dfd8738 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193201 Reviewed-by: Xisco Fauli <[email protected]> Tested-by: Jenkins diff --git a/sd/qa/unit/data/ppt/tdf168786.ppt b/sd/qa/unit/data/ppt/tdf168786.ppt new file mode 100644 index 000000000000..7bdf4091217b Binary files /dev/null and b/sd/qa/unit/data/ppt/tdf168786.ppt differ diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx index 17eb1ed1674e..7d2ae3c7e366 100644 --- a/sd/qa/unit/export-tests-ooxml1.cxx +++ b/sd/qa/unit/export-tests-ooxml1.cxx @@ -222,6 +222,22 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest1, testTdf124781) u"-8000"); } +CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest1, testTdf168786_ppt_to_pptx_internal_link_to_nowhere) +{ + createSdImpressDoc("ppt/tdf168786.ppt"); + save(u"Impress Office Open XML"_ustr); + + xmlDocUniquePtr pXmlDoc1 = parseExport(u"ppt/slides/slide1.xml"_ustr); + assertXPath(pXmlDoc1, "/p:sld/p:cSld/p:spTree/p:sp[3]/p:nvSpPr/p:cNvPr/a:hlinkClick", "action", + u"ppaction://noaction"); + + assertXPath(pXmlDoc1, "/p:sld/p:cSld/p:spTree/p:sp[4]/p:nvSpPr/p:cNvPr/a:hlinkClick", "action", + u"ppaction://noaction"); + + assertXPath(pXmlDoc1, "/p:sld/p:cSld/p:spTree/p:sp[5]/p:nvSpPr/p:cNvPr/a:hlinkClick", "action", + u"ppaction://noaction"); +} + CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest1, testTdf144914) { createSdImpressDoc("pptx/tdf144616.pptx");
