From ad6f0e2dc8bc9ed9f12e57c4dd94e11f439e9c5f Mon Sep 17 00:00:00 2001 From: Serge Krot Date: Thu, 28 Mar 2019 14:10:12 +0100 Subject: tdf#124384 sw DOCX: fix crash during bibliography loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic0c4b6f7480a4c6c3f53bd04e285cb0cab172531 Reviewed-on: https://gerrit.libreoffice.org/69888 Tested-by: Jenkins Reviewed-by: Thorsten Behrens (cherry picked from commit 8a76b845e0376fd39014d6180c78b863f373633f) Reviewed-on: https://gerrit.libreoffice.org/69933 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/qa/extras/ooxmlexport/data/tdf124384.docx | Bin 0 -> 37437 bytes sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 sw/qa/extras/ooxmlexport/data/tdf124384.docx (limited to 'sw/qa') diff --git a/sw/qa/extras/ooxmlexport/data/tdf124384.docx b/sw/qa/extras/ooxmlexport/data/tdf124384.docx new file mode 100644 index 000000000000..a41be4b11574 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf124384.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx index f4a300bc50b3..906634c4da99 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport11.cxx @@ -128,6 +128,13 @@ DECLARE_OOXMLEXPORT_TEST(testTdf63561_clearTabs2, "tdf63561_clearTabs2.docx") CPPUNIT_ASSERT_EQUAL(sal_Int32(4), getProperty< uno::Sequence >(getParagraph(4), "ParaTabStops").getLength()); } +DECLARE_OOXMLEXPORT_TEST(testTdf124384, "tdf124384.docx") +{ + // There should be no crash during loading of the document + // so, let's check just how much pages we have + CPPUNIT_ASSERT_EQUAL(1, getPages()); +} + DECLARE_OOXMLEXPORT_TEST(testTdf121456_tabsOffset, "tdf121456_tabsOffset.odt") { for (int i=2; i<8; i++) -- cgit