sd/qa/unit/data/odp/tdf169941.odp  |binary
 sd/qa/unit/export-tests-ooxml4.cxx |   19 +++++++++++++++++++
 2 files changed, 19 insertions(+)

New commits:
commit 7ea26e0213c7ae83b49d00309e91b4fc26c511f9
Author:     Xisco Fauli <[email protected]>
AuthorDate: Wed Jan 7 17:35:14 2026 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Jan 9 11:06:58 2026 +0100

    tdf#169941: sd_export_tests-ooxml4: Add test
    
    Change-Id: Ic111cfd784158f00f53a66b7169b572ac46f0ff5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196782
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sd/qa/unit/data/odp/tdf169941.odp 
b/sd/qa/unit/data/odp/tdf169941.odp
new file mode 100644
index 000000000000..2a4314221c9d
Binary files /dev/null and b/sd/qa/unit/data/odp/tdf169941.odp differ
diff --git a/sd/qa/unit/export-tests-ooxml4.cxx 
b/sd/qa/unit/export-tests-ooxml4.cxx
index 1b84317419c0..04b8aac09de9 100644
--- a/sd/qa/unit/export-tests-ooxml4.cxx
+++ b/sd/qa/unit/export-tests-ooxml4.cxx
@@ -1369,6 +1369,25 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, 
testEmptyChildTnLstElement)
     CPPUNIT_ASSERT_EQUAL(0, countXPathNodes(pXmlDoc, "//p:sld/p:timing"));
 }
 
+CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testTdf169941_internal_link_to_shapes)
+{
+    createSdImpressDoc("odp/tdf169941.odp");
+
+    save(TestFilter::PPTX);
+
+    xmlDocUniquePtr pRelsDoc2 = 
parseExport(u"ppt/slides/_rels/slide2.xml.rels"_ustr);
+
+    // Without the fix in place, this test would have failed with
+    // - Expected: slide1.xml
+    // - Actual  :
+    assertXPath(pRelsDoc2, 
"/rels:Relationships/rels:Relationship[@Id='rId1']", "Target",
+                u"slide1.xml");
+
+    xmlDocUniquePtr pRelsDoc3 = 
parseExport(u"ppt/slides/_rels/slide3.xml.rels"_ustr);
+    assertXPath(pRelsDoc3, 
"/rels:Relationships/rels:Relationship[@Id='rId1']", "Target",
+                u"slide1.xml");
+}
+
 CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testPlaceHolderFitHeightToText)
 {
     createSdImpressDoc("pptx/tdf160487.pptx");

Reply via email to