sd/qa/unit/data/pptx/tdf91060.pptx |binary
 sd/qa/unit/export-tests.cxx        |    9 +++++++++
 2 files changed, 9 insertions(+)

New commits:
commit e54aa9fe665b5e065c86bd7564156cac262f9c02
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Nov 4 17:28:05 2021 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Nov 4 18:38:49 2021 +0100

    tdf#91060: sd_export_tests: Add unittest
    
    Change-Id: Idb9156fb1ab1cc9c9a59a50af85db174eeefc3b8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124717
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sd/qa/unit/data/pptx/tdf91060.pptx 
b/sd/qa/unit/data/pptx/tdf91060.pptx
new file mode 100644
index 000000000000..8ed2d4145261
Binary files /dev/null and b/sd/qa/unit/data/pptx/tdf91060.pptx differ
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index 89e5f13a27c0..f1d0281aab0d 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -90,6 +90,7 @@ public:
     void testSoftEdges();
     void testShadowBlur();
     void testRhbz1870501();
+    void testTdf91060();
     void testTdf128550();
     void testTdf140714();
     void testMasterPageBackgroundFullSize();
@@ -136,6 +137,7 @@ public:
     CPPUNIT_TEST(testSoftEdges);
     CPPUNIT_TEST(testShadowBlur);
     CPPUNIT_TEST(testRhbz1870501);
+    CPPUNIT_TEST(testTdf91060);
     CPPUNIT_TEST(testTdf128550);
     CPPUNIT_TEST(testTdf140714);
     CPPUNIT_TEST(testMasterPageBackgroundFullSize);
@@ -1468,6 +1470,13 @@ void SdExportTest::testRhbz1870501()
     xDocShRef = saveAndReload( xDocShRef.get(), ODG );
 }
 
+void SdExportTest::testTdf91060()
+{
+    //Without the fix in place, it would crash at import time
+    ::sd::DrawDocShellRef xDocShRef = loadURL( 
m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf91060.pptx"), PPTX);
+    xDocShRef = saveAndReload( xDocShRef.get(), PPTX );
+}
+
 void SdExportTest::testTdf128550()
 {
     utl::TempFile tempFile;

Reply via email to