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

New commits:
commit a279887f1299838630b941d9c2aec3bff4922bf2
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon May 23 12:29:31 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue May 24 09:44:09 2022 +0200

    tdf#149198: sw_ooxmlexport16: Add unittest
    
    Change-Id: I62360e7e3f3cbf28119102baf566b4c647103c0d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134812
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf149198.docx 
b/sw/qa/extras/ooxmlexport/data/tdf149198.docx
new file mode 100644
index 000000000000..61e2bfddbafa
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf149198.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index 43acadba38f1..6b5f11830dd6 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -679,6 +679,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf139580, "tdf139580.odt")
     CPPUNIT_ASSERT_EQUAL(1, getPages());
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf149198, "tdf149198.docx")
+{
+    // Without the fix in place, this test would have crashed at export time
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+    CPPUNIT_ASSERT_EQUAL(OUString("Documentation"), 
getParagraph(1)->getString());
+}
+
 CPPUNIT_TEST_FIXTURE(Test, testFooterMarginLost)
 {
     loadAndSave("footer-margin-lost.docx");

Reply via email to