Reproduction instructions: 1. Enable full RTL support via Tools > Options 2. Make sure the default template's default paragraph style is LTR and left-aligned or jusfieid. 2. Create new Writer document. 3. Type some text, e.g. "Hello world". 4. Press the RTL toolbar button, making the paragraph RTL . 5. Select the entire paragraph (e.g. using Ctrl+A since that's all the document has). 6. On the menus, choose Format > Clear Direct formatting Expected result: The single paragraph is LTR and left-aligned after step 3, RTL and right-aligned after step 4, and LTR and left-aligned again after step 6. Actual result: The single paragraph is LTR and left-aligned after step 3, RTL and right-aligned after step 4, but - RTL and left-aligned after step 6. Weird! Why is this happening? Direction is a paragraph DF feature. Note: Not seeing this with textboxes in Impress, for example. Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: ed45cdaef3d2807d0b9d6a4c08da375fc72024a6 CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3 Locale: en-IL (en_IL); UI: en-US Version: 25.8.1.1 (X86_64) Build ID: 54047653041915e595ad4e45cccea684809c77b5 CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3 Locale: en-IL (en_IL); UI: en-US
Couldn't reproduce in: Version: 25.2.6.2 (X86_64) / LibreOffice Community Build ID: 520(Build:2) CPU threads: 32; OS: Linux 6.14; UI render: default; VCL: gtk3 Locale: en-CA (en_CA.UTF-8); UI: en-US Ubuntu package version: 4:25.2.6-0ubuntu0.25.04.1 Calc: threaded or in Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: e6bcb4ae0d958a53b40dfc0c88f4f7d7f98d677f CPU threads: 32; OS: Linux 6.14; UI render: default; VCL: kf6 (cairo+wayland) Locale: en-CA (en_CA.UTF-8); UI: en-US Calc: threaded Besides selections, paragraph DF is also cleared when the cursor is inside the paragraph, as expected. Bouncing back to NEEDINFO to make sure I'm not missing something.
(In reply to Jonathan Clark from comment #1) > Besides selections, paragraph DF is also cleared when the cursor is inside > the paragraph, as expected. I'm not sure what you mean about the cursor; why does it matter? It's weird that you can't reproduce. Shall I create a video? Would you like to?
Created attachment 203044 [details] Video file showing failure to reproduce
Created attachment 203045 [details] Video showing the effect
This behavior was changed intentionally. See bug 40496.
(In reply to Jonathan Clark from comment #5) > This behavior was changed intentionally. See bug 40496. Well, I disclaim all responsibility for that silliness, since it was before my time. But project people should have blocked that IMNSHO. Anyway, perhaps that makes this bug easy to fix.
An alternative approach to let LO "reflect the inherent RTLness" of text is if we have an "autodetect" horizontal direction setting in addition to "ltr", "rtl" and "inherit".