Bug 155890

Summary: Changing page direction misplaces end-of-paragraph pilcrow
Product: LibreOffice Reporter: Eyal Rozenberg <eyalroz1>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor    
Priority: medium    
Version: 7.5.4.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=135350
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 43808    
Attachments: Pilcrow placement before and after page style direction change

Description Eyal Rozenberg 2023-06-17 07:51:47 UTC
Created attachment 187956 [details]
Pilcrow placement before and after page style direction change

Reproduction: Enable formatting marks display, then follow the same instructions in 

https://bugs.documentfoundation.org/show_bug.cgi?id=135350#c3

(in a nutshell: Switch a new LTR-pages document's default page style to be RTL)

Expected result:

End-of-paragraph pilcrow appears at left edge of text area, inside the text area.

Actual result:

End-of-paragraph pilcrow appears at right edge of text area, outside the text area.

(Also, the buggy behavior in 135350.)

Build info:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: qt5 (qfont+xcb)
Locale: he-IL (en_IL); UI: en-US
Calc: threaded
Comment 1 Eyal Rozenberg 2023-06-17 07:55:56 UTC
Notes:

* This happens both if you change the direction via Format | Page Style or by editing the default page style.

* If you force the paragraph direction to LTR (like it should have anyway) then  to RTL, the pilcrow appears within the text area.
Comment 2 ysui2022 2023-07-06 04:38:45 UTC
I reproduced the bug successfully.The pilcrow went out of the border.

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: CL threaded