sd/qa/unit/data/ppt/tdf169705.ppt  |binary
 sd/qa/unit/export-tests-ooxml3.cxx |   16 ++++++++++++++++
 2 files changed, 16 insertions(+)

New commits:
commit f0a8db34026454bb0bb66ee30de1106a56997d86
Author:     Xisco Fauli <[email protected]>
AuthorDate: Mon Dec 15 15:51:32 2025 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Tue Dec 16 09:54:36 2025 +0100

    tdf#169705: sd_export_tests-ooxml3: Add test
    
    Change-Id: I61557305a2d1eb9a42800b298098dc49f3fd77d1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195675
    Reviewed-by: Xisco Fauli <[email protected]>
    Tested-by: Jenkins

diff --git a/sd/qa/unit/data/ppt/tdf169705.ppt 
b/sd/qa/unit/data/ppt/tdf169705.ppt
new file mode 100644
index 000000000000..36ddc14b7dfa
Binary files /dev/null and b/sd/qa/unit/data/ppt/tdf169705.ppt differ
diff --git a/sd/qa/unit/export-tests-ooxml3.cxx 
b/sd/qa/unit/export-tests-ooxml3.cxx
index 5a78b38616a8..0c6b3930f671 100644
--- a/sd/qa/unit/export-tests-ooxml3.cxx
+++ b/sd/qa/unit/export-tests-ooxml3.cxx
@@ -65,6 +65,22 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest3, 
testTdf169694_import_OLE_animation)
                 1);
 }
 
+CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest3, testTdf169705_invalidValuesAOff)
+{
+    createSdImpressDoc("ppt/tdf169705.ppt");
+    save(TestFilter::PPTX);
+
+    xmlDocUniquePtr pXmlDoc1 = parseExport(u"ppt/slides/slide1.xml"_ustr);
+
+    // Without the fix in place, this test would have failed with
+    // - Expected: 2147483647
+    // - Actual  : 2147484240
+    assertXPath(pXmlDoc1, 
"/p:sld/p:cSld/p:spTree/p:pic[5]/p:spPr/a:xfrm/a:off", "x",
+                OUString::number(std::numeric_limits<sal_Int32>::max()));
+    assertXPath(pXmlDoc1, 
"/p:sld/p:cSld/p:spTree/p:pic[5]/p:spPr/a:xfrm/a:off", "y",
+                OUString::number(std::numeric_limits<sal_Int32>::max()));
+}
+
 CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest3, testTdf165262)
 {
     createSdImpressDoc("ppt/tdf165262.ppt");

Reply via email to