sw/qa/extras/ooxmlexport/data/tdf138771.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport16.cxx   |    6 ++++++
 2 files changed, 6 insertions(+)

New commits:
commit 0b072e279f5f775a4cd64d9b1275e5ab17d50f05
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Mar 2 15:26:14 2021 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Mar 3 08:53:06 2021 +0100

    tdf138771: sw_ooxmlexport16: Add unittest
    
    Change-Id: Ia1d2020b621233231f63bd5bbaacb5e75b38b48f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111836
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf138771.docx 
b/sw/qa/extras/ooxmlexport/data/tdf138771.docx
new file mode 100644
index 000000000000..70b035508bb2
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf138771.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index f53078d6a332..b7af0c5e69b2 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -84,6 +84,12 @@ DECLARE_OOXMLEXPORT_TEST(testTdf140668, "tdf140668.docx")
     CPPUNIT_ASSERT_EQUAL(1, getPages());
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf138771, "tdf138771.docx")
+{
+    // Don't crash when document is imported
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
 DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf134619_numberingProps, 
"tdf134619_numberingProps.doc")
 {
     // Get the third paragraph's numbering style's 1st level's bullet size
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to