Bug 153668 - RTL sequence broken when hyperlinking space-separated text
Summary: RTL sequence broken when hyperlinking space-separated text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL
  Show dependency treegraph
 
Reported: 2023-02-16 13:59 UTC by Eyal Rozenberg
Modified: 2023-03-17 11:31 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Spreadsheet with the bug manifesting (12.80 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-16 13:59 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-02-16 13:59:09 UTC
Created attachment 185407 [details]
Spreadsheet with the bug manifesting

Do the following:

1. Create a new spreadsheet
2. Set the direction of cell A1 to RTL
3. Type in "hello world"
4. Select only the word "world" within the edited cell text
5. Insert a hyperlink (e.g. using Ctrl+K or Insert > Hyperlink on the menu) to some arbitrary URL, e.g. "foo"

Expected results: 

* After step (3.), the word "hello" appears to the left of the word "world".
* After step (5.), the word "hello" appears to the left of the word "world".

Actual results:

* After step (3.), the word "hello" appears to the left of the word "world".
* After step (5.), the word "hello" appears to the RIGHT of the word "world".

It seems that the hyperlinking breaks the LTR run, and the two runs/spans/objects are placed according to the cell direction

Note: The sheet direction doesn't matter (which is ok).
Comment 1 Eyal Rozenberg 2023-02-16 14:00:18 UTC
Experienced with:

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: CL threaded

and with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Calc: threaded
Comment 2 Yossef(a) 2023-02-16 14:17:19 UTC
This is replicated on my system too:

Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Calc: threaded