Bug 168185 - List item can be shown wrong when shapes interfere with placement
Summary: List item can be shown wrong when shapes interfere with placement
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2025-08-30 00:50 UTC by Aron Budea
Modified: 2025-09-29 09:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample ODT (12.54 KB, application/vnd.oasis.opendocument.text)
2025-08-30 00:50 UTC, Aron Budea
Details
Screenshot after opening (58.29 KB, image/png)
2025-08-30 00:50 UTC, Aron Budea
Details
Screenshot after resizing red rectangle (56.47 KB, image/png)
2025-08-30 00:51 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2025-08-30 00:50:04 UTC
Created attachment 202606 [details]
Sample ODT

Open the attached document that has a bulleted list, and two rectangles positioned to displace some of the items.

Note the following problems with the 3rd list item: 
- should start with "123456" but only "23456" is shown,
- the item starts further in compared to the others.

If you delete the blue rectangle, you can see what the list item should look like.

If you resize the red rectangle vertically so it ends at around where the blue rectangle starts, the item changes, now all the characters are shown, but the item has two bullets, which is also wrong.

Observed in LO 26.2.0.0.alpha0+ (750ac43647526525c425124f601112b64c8e8f46), and in latest of 7.6 bibisect repo / Windows.
Between 3.3 and latest of 7.5 bibisect repo, the list item looks like the result of the above described resizing initially (the size of the shape doesn't change): all the characters are shown, but the item has two bullets.
Comment 1 Aron Budea 2025-08-30 00:50:36 UTC
Created attachment 202607 [details]
Screenshot after opening
Comment 2 Aron Budea 2025-08-30 00:51:18 UTC
Created attachment 202608 [details]
Screenshot after resizing red rectangle
Comment 3 Julia 2025-09-29 09:14:08 UTC
I was able to reproduce the actual behavior, with bullet point lists and with numbered lists, with different font sizes, and with shapes, text boxes and images. I have added steps to reproduce in an empty LO text file as well as some observations.

There are two problems here:
    • problem 1: list item has two bullets (result of step 11)  
    • problem 2: first character of list item disappears (result of step 12)
      
I was able to reproduce both in 
    • LO 7.6.7.2 (LibreOffice_7.6.7.2_Win_x86-64.msi, downloaded from https://downloadarchive.documentfoundation.org/libreoffice/old/7.6.7.2/win/x86_64/)
    • LO 25.8.1 (LibreOffice_25.8.1_Win_x86-64.msi, downloaded from https://www.libreoffice.org/download/download-libreoffice/)

I was able to reproduce problem 1 but NOT problem 2 in
    • LO 7.5.9.2 (LibreOffice_7.5.9.2_Win_x86-64.msi, downloaded from https://downloadarchive.documentfoundation.org/libreoffice/old/7.5.9.2/win/x86_64/)

Expected behavior:
Characters and indentation of list item are not affected by shape above it.


Steps to reproduce:
1. In new empty LibO Text Document, create a bullet point list with four items:
    • AAAAAA AAAAAA
    • BBBBBB BBBBBB
    • 123456 CCCCCC
    • DDDDDD DDDDDD
2. Insert > Shape > Basic shapes > rectangle, click in editor to create rectangle
3. Right-click on rectangle > Wrap > optimal
4. Move rectangle under second list item
=> third and fourth list items move to the right of the rectangle
5. Insert > Shape > Basic shapes > rectangle, click in editor to create second rectangle
6. Right-click on second rectangle > Area > set color to red
7. Right-click on red rectangle > Wrap > optimal
8. ESC
9. Change height of red rectangle so that it fits above the third list item
10. Move red rectangle above third list item (123456 CCCCCC) and higher than blue rectangle, align left corner with bullet point. If this results in first and second list entries moving to the right, repeat this step with a wider red rectangle.
11. Resize red rectangle by dragging down until it touches the third list item (123456 CCCCCC)
=> result: third list item has two bullets
12. Resize red rectangle until it would obscure third list item if it was in the foreground
=> result: first character of third list item disappears (23456 CCCCCC)


Further observations:
    • If, after step 12, you increase the height of the red rectangle so that the third and fourth list items move to the left of it, the missing character does NOT reappear.
    • If, after step 12, you remove the list styling from the third list item, the missing character is displayed.
    • The following conditions do NOT change the behavior:
        ◦ using numbered lists instead of bullet point lists (except that here we don't get two bullet points but two numbers)
        ◦ using a text box or an image instead of a shape
        ◦ using different font sizes
        ◦ using a letter instead of a number at the beginning of the third list item