Bug 168390 - In OLE-embedded RTL paragraph, right-aligned RTL text is left-aligned to paragraph start
Summary: In OLE-embedded RTL paragraph, right-aligned RTL text is left-aligned to para...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OLE-Objects RTL 168296
  Show dependency treegraph
 
Reported: 2025-09-13 08:41 UTC by Eyal Rozenberg
Modified: 2025-09-13 17:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc doc with Writer OLE object illustrating the bug (15.84 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-09-13 08:46 UTC, Eyal Rozenberg
Details
Calc doc with Writer OLE object illustrating the bug (LO 26.2 nightly) (27.12 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-09-13 08:53 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2025-09-13 08:41:20 UTC
Reproduction instructions:

0. Enable full RTL language support.
1. Create new Calc document.
2. On the menus, Insert > OLE Object > OLE Object...
3. Choose a Writer document, i.e. "LibreOffice XX.Y Text"
4. In the OLE document, choose RTL direction, Right alignment.
5. Press the Bulleted list toolbar button (could also be numbered, doesn't matter)
6. In the OLE document, enter a few letters in an RTL language for which your paragraph style's font has glyphs, e.g. "سط" or "אב".
7. Exit the OLE document's frame by clicking the Calc sheet cells outside of it.

Expected results:
Text rendering outside the OLE object is the same as inside of it (modulo some movement within the framing rectangle).

Actual results:
The text renders, and the bullet renders, but the distance between the text and the bullet is smaller. Careful observation will show that the distance is the intended distance minus the length of the stretch of text, i.e. instead of the text being right-aligned to the (First-Line indented) beginning point for text, it is _left_-aligned to it - extending further due right, and closer to the bullet.

If one were to type a longer bit of text, the text renders over and past the bullet character.
Comment 1 Eyal Rozenberg 2025-09-13 08:46:48 UTC
Created attachment 202816 [details]
Calc doc with Writer OLE object illustrating the bug

This document was created using the reproduction instructions, but with two additional actions:

1. Orange background for the paragraph
2. Cyan higlighting (= text background) for the RTL text we typed

You'll notice that the highlighting and the text are rendered in _different_ areas - the text is rendered to the right of where it should have been, which is over the highlight.
Comment 2 Eyal Rozenberg 2025-09-13 08:53:08 UTC
Created attachment 202817 [details]
Calc doc with Writer OLE object illustrating the bug (LO 26.2 nightly)

Added some screenshots and a bit of text to the "outside" part of the exemplifying document to make it more understandable on its own.