Bug 147140 - Selection bounding box for BIDI text
Summary: Selection bounding box for BIDI text
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-02 15:15 UTC by jcuenod
Modified: 2023-07-08 03:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Demonstration of RTL text selection box drawing bug (1.19 MB, image/gif)
2022-02-02 15:15 UTC, jcuenod
Details
Document with BIDI text paragraph (11.64 KB, application/vnd.oasis.opendocument.text)
2022-02-03 21:25 UTC, jcuenod
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jcuenod 2022-02-02 15:15:53 UTC
Created attachment 177994 [details]
Demonstration of RTL text selection box drawing bug

When selecting RTL text, the bottom of the "highlight box" drawn around the selected text is miscalculated and extends off the bottom of the page.

This appears to happen when selecting from within a line of text (rather than from the margin/edge). The attachment demonstrates the bug.
Comment 1 raal 2022-02-02 20:17:47 UTC
PLease attach test file.
Comment 2 jcuenod 2022-02-03 21:25:00 UTC
Created attachment 178028 [details]
Document with BIDI text paragraph

Note also that the bounding box calculation is not always broken. Conditions under which the bug is triggered appear to be limited to:

1. Selections that begin and end anywhere within the RTL text.

2. Selections that move “backwards” from the LTR text and end in the RTL text (i.e., start index > end index). That is, selections that move forwards (have a starting character index that is lower than the ending character index) do not trigger the bug and selections that move backwards but encompass the entire RTL range do not trigger the bug.
Comment 3 Buovjaga 2022-12-08 12:11:12 UTC
(In reply to jcuenod from comment #2)
> Created attachment 178028 [details]
> Document with BIDI text paragraph

The selection is not extending to the bottom for me like in your gif.

Please copy and paste here the contents of your Help - About. This allows us to know more about your system.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.

Arch Linux 64-bit
Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 705b2924a14841883b4a8cac549f7af326d7a185
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 8 December 2022
Comment 4 QA Administrators 2023-06-07 03:13:08 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2023-07-08 03:15:46 UTC
Dear jcuenod,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp