diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2020-07-10 14:07:38 +0300 |
---|---|---|
committer | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2020-07-12 21:56:15 +0200 |
commit | b88b681743b1278b4fa44bef4d5bce3e2cb49316 (patch) | |
tree | 47e4d92de5a0cc5f8b8e338ac1b6c31b61004380 /sw/qa | |
parent | 5653791d74b9ddc405a90f51801e95926224b204 (diff) |
tdf#134570: doc import: list level format string fixed
List level placeholder is defined from char at defined
position, not only from position array.
Change-Id: I008e6711312435571f0d04544f6bfa42c1309f31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98500
Tested-by: Jenkins
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ww8export/data/tdf134570.doc | bin | 0 -> 39936 bytes | |||
-rw-r--r-- | sw/qa/extras/ww8export/ww8export3.cxx | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/data/tdf134570.doc b/sw/qa/extras/ww8export/data/tdf134570.doc Binary files differnew file mode 100644 index 000000000000..17f7842d703f --- /dev/null +++ b/sw/qa/extras/ww8export/data/tdf134570.doc diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx index 5c1892ce5205..ed4c5526e307 100644 --- a/sw/qa/extras/ww8export/ww8export3.cxx +++ b/sw/qa/extras/ww8export/ww8export3.cxx @@ -599,6 +599,16 @@ DECLARE_WW8EXPORT_TEST(testTdf120394, "tdf120394.doc") } } +DECLARE_WW8EXPORT_TEST(testTdf134570, "tdf134570.doc") +{ + CPPUNIT_ASSERT_EQUAL(1, getPages()); + { + uno::Reference<beans::XPropertySet> xPara(getParagraph(1), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int16>(1), getProperty<sal_Int16>(xPara, "NumberingLevel")); + CPPUNIT_ASSERT_EQUAL(OUString("1"), getProperty<OUString>(xPara, "ListLabelString")); + } +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |