sd/source/core/stlpool.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 5c68399e6bea3aa18477487400f8bb143d6ed84e
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Mon Aug 1 15:18:13 2022 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Tue Aug 2 02:01:10 2022 +0200

    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 <jl...@mail.com>
    Reviewed-by: Justin Luth <jl...@mail.com>

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

Reply via email to