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>
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 2e885ef..d5b04b0 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#