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

New commits:
commit 5db76fd0eca0c80b1e54cdf4a7fea769f5dbc5a4
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Aug 17 22:39:27 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Aug 18 11:12:20 2022 +0200

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

diff --git a/sw/qa/extras/ooxmlexport/data/tdf148671.docx 
b/sw/qa/extras/ooxmlexport/data/tdf148671.docx
new file mode 100644
index 000000000000..d4ed09fa9671
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf148671.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
index f0b834039066..f1c912bad79c 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport16.cxx
@@ -488,6 +488,12 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf69635)
     assertXPath(pXmlSettings, "/w:settings/w:evenAndOddHeaders", 0);
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf148671, "tdf148671.docx")
+{
+    // Don't assert with 'pFieldMark' failed when document is opened
+    CPPUNIT_ASSERT_EQUAL(1, getPages());
+}
+
 DECLARE_OOXMLEXPORT_TEST(testTdf140668, "tdf140668.docx")
 {
     // Don't crash when document is opened

Reply via email to