sw/source/uibase/wrtsh/wrtsh1.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit f306d601a1eab561815a0a1e6dc2cd3d857d4f05 Author: Justin Luth <jl...@mail.com> AuthorDate: Mon Aug 1 15:10:40 2022 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Mon Aug 1 22:53:17 2022 +0200 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 <jl...@mail.com> 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#