From d1f1f546b212ecd651146addeb328806bb270d5f Mon Sep 17 00:00:00 2001 From: Vasily Melenchuk Date: Thu, 5 Aug 2021 20:40:13 +0300 Subject: sw: numbering rule is not constructed for numbering type "None" Previously during refactoring this condition was lost. And it is possible practically that we have all format for numbering (prefix, suffix, format string, etc) but numbering is disabled. Change-Id: I0c8ab446753308ad80b8d133824a936dacf6cc82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120082 Tested-by: Thorsten Behrens Reviewed-by: Thorsten Behrens --- sw/qa/extras/odfexport/data/tdf143605.odt | Bin 0 -> 8729 bytes sw/qa/extras/odfexport/odfexport2.cxx | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 sw/qa/extras/odfexport/data/tdf143605.odt (limited to 'sw/qa/extras/odfexport') diff --git a/sw/qa/extras/odfexport/data/tdf143605.odt b/sw/qa/extras/odfexport/data/tdf143605.odt new file mode 100644 index 000000000000..7fb597e6d71c Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf143605.odt differ diff --git a/sw/qa/extras/odfexport/odfexport2.cxx b/sw/qa/extras/odfexport/odfexport2.cxx index db2110c612a0..8e888f1aaa59 100644 --- a/sw/qa/extras/odfexport/odfexport2.cxx +++ b/sw/qa/extras/odfexport/odfexport2.cxx @@ -60,6 +60,12 @@ DECLARE_ODFEXPORT_TEST(testTdf137199, "tdf137199.docx") CPPUNIT_ASSERT_EQUAL(OUString("HELLO2WORLD!"), getProperty(getParagraph(4), "ListLabelString")); } +DECLARE_ODFEXPORT_TEST(testTdf143605, "tdf143605.odt") +{ + // With numering type "none" there should be nothing + CPPUNIT_ASSERT_EQUAL(OUString(""), getProperty(getParagraph(1), "ListLabelString")); +} + DECLARE_ODFEXPORT_TEST(testListFormatDocx, "listformat.docx") { // Ensure in resulting ODT we also have not just prefix/suffix, but custom delimiters -- cgit