Bug 449718 - underline last letter
Summary: underline last letter
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.12.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-06 21:21 UTC by andreas.naumann
Modified: 2022-02-07 17:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video showing all steps (2.77 MB, video/mp4)
2022-02-06 23:36 UTC, andreas.naumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andreas.naumann 2022-02-06 21:21:09 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. open pdf
2. select underline annotation
3. try to select a line including the last letter

OBSERVED RESULT

underline stops at the letter before the last, except when selecting the next line, too

EXPECTED RESULT
underlined letters in one line.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.11.0-44.generic (X11)
(available in About System)
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
This might be related to https://bugs.kde.org/show_bug.cgi?id=449043 .
As a test, I choose the file autotests/data/file1.pdf from the okular sources.
Comment 1 Albert Astals Cid 2022-02-06 22:23:00 UTC
Can you attach a video/gif of that (or put it in imgur)? I can underline just fine.
Comment 2 andreas.naumann 2022-02-06 23:36:10 UTC
Created attachment 146361 [details]
video showing all steps
Comment 3 andreas.naumann 2022-02-06 23:37:18 UTC
(In reply to Albert Astals Cid from comment #1)
> Can you attach a video/gif of that (or put it in imgur)? I can underline
> just fine.

It seems to happen only in a specific cirumstance:

1. open the test file autotests/data/file1.pdf
2. make sure, that the sidebar is shown (settings -> show sidebar)
3. set the zoom level to 400 % (that is a minimal value for me. with larger zoom levels, the problem occurs, with smaller it disapears. My display resolution is 1920x1080)
4. zoom to the end of the first line
5. close okular
6. restart okular from the commandline with the same file as only argument (for me, it shows the file at the end of the first line)
7. select "underline annotation"
8. try to underline starting from the word "file" to the end (for me the underline stops at the letter a in "was")
9. reset the zoom level to 100 % 
10. try to underline the full line (the underline stops at the letter "a" again). But one can select the first and the second line together, which includes the end of the first line and the last character.
Comment 4 Albert Astals Cid 2022-02-07 17:30:48 UTC
Defenitely can not reproduce myself :/