From 5c68399e6bea3aa18477487400f8bb143d6ed84e Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Mon, 1 Aug 2022 15:18:13 -0400 Subject: related tdf#150197: sd should SetListFormat sd code should all use the new ListFormat behaviour instead of the legacy Prefix/Suffix numbering format. At this point I don't think any SD code is using the new ListFormat, but SetListFormat has code to SetPrefix and SetSuffix, so it shouldn't hurt to do this. Change-Id: I91f9816161676d3444533481cbb616a2f5b069e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137686 Tested-by: Justin Luth Reviewed-by: Justin Luth --- sd/source/core/stlpool.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 12891698a19f..fb9abbf88221 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -1118,8 +1118,7 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet, SvxNumberFormat aFrmt( pDefaultRule->GetLevel(i) ); aFrmt.SetNumberingType(SVX_NUM_CHAR_SPECIAL); // #i93908# clear suffix for bullet lists - aFrmt.SetPrefix(OUString()); - aFrmt.SetSuffix(OUString()); + aFrmt.SetListFormat("", "", i); aFrmt.SetStart(1); aFrmt.SetBulletRelSize(45); aFrmt.SetBulletChar( 0x25CF ); // StarBats: 0xF000 + 34 -- cgit