diff options
author | Justin Luth <jluth@mail.com> | 2022-08-01 15:10:40 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2022-08-01 22:53:17 +0200 |
commit | f306d601a1eab561815a0a1e6dc2cd3d857d4f05 (patch) | |
tree | 24a3827cb1a9bbf6cd6f2a73af9ec4ec2e4dd097 /sw | |
parent | cd45ff66cfdb8d4417e159aaae59060dc232e810 (diff) |
related tdf#150197: SwWrtShell::NumOrBulletOn should SetListFormat
sw code should all use the ne ListFormat behaviour instead of
the legacy Prefix/Suffix numbering format.
There is another case in sd - but I'm a little leery
about whether SD really supports the new ListFormat for numbering...
Change-Id: I8dc0e14f5bc24d448a2551dba70b3dcce18273b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137682
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh1.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index 2e885ef49c39..d5b04b087fc2 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -1511,8 +1511,7 @@ void SwWrtShell::NumOrBulletOn(bool bNum) aFormat.SetBulletChar( numfunc::GetBulletChar(static_cast<sal_uInt8>(nLevel))); aFormat.SetNumberingType(SVX_NUM_CHAR_SPECIAL); // #i93908# clear suffix for bullet lists - aFormat.SetPrefix(OUString()); - aFormat.SetSuffix(OUString()); + aFormat.SetListFormat("", "", nLevel); } aNumRule.Set(o3tl::narrowing<sal_uInt16>(nLevel), aFormat); } @@ -1570,8 +1569,7 @@ void SwWrtShell::NumOrBulletOn(bool bNum) aFormat.SetBulletChar( numfunc::GetBulletChar(nLvl) ); aFormat.SetNumberingType(SVX_NUM_CHAR_SPECIAL); // #i93908# clear suffix for bullet lists - aFormat.SetPrefix(OUString()); - aFormat.SetSuffix(OUString()); + aFormat.SetListFormat("", "", nLvl); } // #i95907# |