Bug 161248

Summary: "Document Bullets" list duplicates items when applying a pre-existing bullet type
Product: LibreOffice Reporter: Stéphane Guillou (stragu) <stephane.guillou>
Component: WriterAssignee: Samuel Mehrbrodt (allotropia) <samuel.mehrbrodt>
Status: VERIFIED FIXED    
Severity: normal CC: samuel.mehrbrodt
Priority: medium Keywords: implementationError
Version: 24.8.0.0 alpha1+   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=161056
Whiteboard: target:24.8.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103369    
Attachments: screenshot of issue

Description Stéphane Guillou (stragu) 2024-05-24 05:27:10 UTC
Created attachment 194322 [details]
screenshot of issue

In the new Document Bullets feature for bug 161056, applying such a saved bullet type results in the widget filling up with the same preview.

Steps:
1. Open Writer
2. Type some text, make it a unordered list
3. Right click > List > Bullets and Numbering > Customize tab: select a new Character > OK > OK
4. Insert a new, non-list paragraph underneath, with some text
5. Open the Unordered List dropdown from the toolbar, apply the only "Document bullet" listed
6. Open the widget again

Result: The preview is duplicated to fill up the whole Document Bullets section.

Tested with own trunk build from today:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 322b158c5c517cb0242e95240928949ab41d95a0
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3

Same with gen VCL plugin.

Samuel, can you please have a look?
Comment 1 Commit Notification 2024-06-03 12:33:25 UTC
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/00c92662a688e04c0dcec0db6c253689d662faeb

tdf#161248 Don't duplicate bullets used in document

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Stéphane Guillou (stragu) 2024-06-07 12:34:42 UTC
Thanks Samuel, verified in own build:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 6d39b1a6068bbbd5ca4947f668f989dbfb73342d
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded