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 <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
Justin Luth 2022-08-01 15:18:13 -04:00
parent 654454a32b
commit 5c68399e6b

View file

@ -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