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

New commits:
commit c6727aa7d9699a103b5116814c9c2073b429b312
Author:     Xisco Fauli <[email protected]>
AuthorDate: Thu Dec 4 15:49:04 2025 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Thu Dec 4 19:32:37 2025 +0100

    sd_export_tests-ooxml4: Add test for 38b239c8bcf9
    
    Change-Id: Id67ad47af727eea7b8ff2eaa917bf274167c3ced
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195007
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sd/qa/unit/data/odp/badPercentageValue.odp 
b/sd/qa/unit/data/odp/badPercentageValue.odp
new file mode 100644
index 000000000000..dd26f18e4ad8
Binary files /dev/null and b/sd/qa/unit/data/odp/badPercentageValue.odp differ
diff --git a/sd/qa/unit/export-tests-ooxml4.cxx 
b/sd/qa/unit/export-tests-ooxml4.cxx
index 65fca6a416b1..99c8b1fcb3c4 100644
--- a/sd/qa/unit/export-tests-ooxml4.cxx
+++ b/sd/qa/unit/export-tests-ooxml4.cxx
@@ -1407,6 +1407,17 @@ CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, 
testInvalidCxAndCyAttribute)
     saveAndReload(TestFilter::PPTX);
 }
 
+CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testBadPercentageValue)
+{
+    createSdImpressDoc("odp/badPercentageValue.odp");
+
+    // Without the fix in place, this test would have failed with
+    // - Expected: 0
+    // - Actual  : 4
+    // - validation error in OOXML export: Errors: 4
+    saveAndReload(TestFilter::PPTX);
+}
+
 CPPUNIT_TEST_FIXTURE(SdOOXMLExportTest4, testInvalidPrstDashEnumValue)
 {
     createSdImpressDoc("odp/invalidPrstDashEnumValue.odp");

Reply via email to