diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2021-08-05 20:40:13 +0300 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-08-08 23:19:30 +0200 |
commit | d1f1f546b212ecd651146addeb328806bb270d5f (patch) | |
tree | 0cf828233d1035da5543053e9759566832db5d5a /sw/qa/extras/odfexport | |
parent | 2c1ae17421af0fc0e398b66bc2a07f27977a5bf0 (diff) |
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 <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r-- | sw/qa/extras/odfexport/data/tdf143605.odt | bin | 0 -> 8729 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport2.cxx | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf143605.odt b/sw/qa/extras/odfexport/data/tdf143605.odt Binary files differnew file mode 100644 index 000000000000..7fb597e6d71c --- /dev/null +++ b/sw/qa/extras/odfexport/data/tdf143605.odt 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<OUString>(getParagraph(4), "ListLabelString")); } +DECLARE_ODFEXPORT_TEST(testTdf143605, "tdf143605.odt") +{ + // With numering type "none" there should be nothing + CPPUNIT_ASSERT_EQUAL(OUString(""), getProperty<OUString>(getParagraph(1), "ListLabelString")); +} + DECLARE_ODFEXPORT_TEST(testListFormatDocx, "listformat.docx") { // Ensure in resulting ODT we also have not just prefix/suffix, but custom delimiters |