Bug 492004

Summary: Highlighter Bug: Fails to select last letter for last word
Product: [Applications] okular Reporter: Leonard Mada <leo.mada>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: PDF document showing Bug
Image showing the Bug

Description Leonard Mada 2024-08-21 21:11:44 UTC
Created attachment 172831 [details]
PDF document showing Bug

Highlighter Bug: Fails to select last letter for the last word on a line

SUMMARY
Okular tools like Highlighter fail to select the last letter of the last word on each line (in the 2nd column). One such pdf document is attached: the bug pops up in a few more pdf-documents.

STEPS TO REPRODUCE
1. Open attached pdf document;
2. Browse e.g. to page 9;
3. Select highlighter tool and try to select the last word on any of the lines in the 2nd column;

OBSERVED RESULT
Highlighter tool misses to select the last letter. It is not possible to select the last letter even if the mouse is dragged as far right as possible.

It is possible to "fake" the selection of the last letter by "selecting" the start of the next line: but this reduces productivity quite a lot.

EXPECTED RESULT
Enable selection of last letter of the last word on the respective text-line.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
The bug affects both the Highlighter tool, as well as the Line and Squiggle tools. There is a workaround, albeit quit frustrating when the user wants to select the last word over-and-over again.
Comment 1 Leonard Mada 2024-08-21 21:13:28 UTC
Created attachment 172832 [details]
Image showing the Bug

Okular fails to select & highlight the ;ast letter of the last word on the line. It is possible to "fake" the selection by selecting the start of the next line.