Bug 154491 - Force LTR direction while editing a formula
Summary: Force LTR direction while editing a formula
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-UI
  Show dependency treegraph
 
Reported: 2023-03-30 21:21 UTC by Eyal Rozenberg
Modified: 2023-04-05 19:21 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-03-30 21:21:23 UTC
This bug is being "migrated" (more like copied) from the old OpenOffice Bugzilla - one of the RTL-CTL bugs tracked there:

https://bz.apache.org/ooo/show_bug.cgi?id=55178

When the user is editing a cell in RTL direction, or in automatic direction in an RTL sheet, end enters a formula - even one without any RTL character - the rendering of the cell text (i.e. the = sign and the formula) is RTL rather than LTR, within the cell, during the edit. After the edit - it's the formula result that gets shown.

The cell edit bar on top is "fine"; or rather - it is LTR always, but that would be a different issue (if at all).
Comment 1 Hossein 2023-04-05 19:21:29 UTC
Confirmed in LO 7.6 dev master:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8c3e219a831719ebb40dd2af8a26b0a24ad7aba1
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: fa-IR (fa_IR); UI: fa-IR
Calc: CL threaded

One can reproduce the problem by running LibreOffice in this way:

 $ LANG=fa_IR instdir/program/soffice --calc

and then typing: =123
The text will appear as 123= before pressing enter.

Surprisingly, the problem is not reproducible with:
SAL_RTL_ENABLED=1 instdir/program/soffice