diff options
author | Serge Krot <Serge.Krot@cib.de> | 2019-03-28 14:10:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-29 22:25:34 +0100 |
commit | ad6f0e2dc8bc9ed9f12e57c4dd94e11f439e9c5f (patch) | |
tree | 9d960c74c78fd0f898c37c10cdd03cb558d9e26f /sw/qa | |
parent | 0198259e4301a45c339fcdda688892e1e6a3ad9f (diff) |
tdf#124384 sw DOCX: fix crash during bibliography loading
Change-Id: Ic0c4b6f7480a4c6c3f53bd04e285cb0cab172531
Reviewed-on: https://gerrit.libreoffice.org/69888
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit 8a76b845e0376fd39014d6180c78b863f373633f)
Reviewed-on: https://gerrit.libreoffice.org/69933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/tdf124384.docx | bin | 0 -> 37437 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport11.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf124384.docx b/sw/qa/extras/ooxmlexport/data/tdf124384.docx Binary files differnew file mode 100644 index 000000000000..a41be4b11574 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf124384.docx 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<style::TabStop> >(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++) |