Bug 168663 - Image is not painted when anchoring is "As character" and its paragraph has "Fixed" line spacing
Summary: Image is not painted when anchoring is "As character" and its paragraph has "...
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 Writer-Images
  Show dependency treegraph
 
Reported: 2025-10-02 14:27 UTC by Gabor Kelemen (Collabora)
Modified: 2025-10-02 20:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (49.41 KB, application/vnd.oasis.opendocument.text)
2025-10-02 14:27 UTC, Gabor Kelemen (Collabora)
Details
Initial view of the document with image anchored to paragraph (105.34 KB, image/png)
2025-10-02 14:28 UTC, Gabor Kelemen (Collabora)
Details
After changing anchor to "As Character" (94.49 KB, image/png)
2025-10-02 14:29 UTC, Gabor Kelemen (Collabora)
Details
Changing Fixed line spacing brings back the image (103.91 KB, image/png)
2025-10-02 14:29 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-10-02 14:27:58 UTC
Created attachment 203111 [details]
Example file from Writer

Attached reproducer document has an image anchored "To Paragraph" and paragraphs with Fixed line spacing.
When the anchoring is changed to "As Character" the image mostly disappears, only the bottom gets still painted.
Removing the "Fixed" line spacing value from the paragraph it is anchored to, miraculously solves this issue.

1. Open attached document
2. Right click the image, change anchoring to "As Character"
-> Image mostly disappears behind the paragraph above it
3. Click in the bottom "Lorem ipsum" paragraph
4. Go to the Properties sidebar, at the bottom below Spacing drop down the Line Spacing settings, and select Single spacing (or anything apart from Fixed)
-> Image is rendered again.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b86c16870251877962e986ec9d1418e1f376241f
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Looks like this was always bad since 3.3.
Comment 1 Gabor Kelemen (Collabora) 2025-10-02 14:28:47 UTC
Created attachment 203112 [details]
Initial view of the document with image anchored to paragraph
Comment 2 Gabor Kelemen (Collabora) 2025-10-02 14:29:11 UTC
Created attachment 203113 [details]
After changing anchor to "As Character"
Comment 3 Gabor Kelemen (Collabora) 2025-10-02 14:29:36 UTC
Created attachment 203114 [details]
Changing Fixed line spacing brings back the image