Bug 449718

Summary: underline last letter
Product: [Applications] okular Reporter: andreas.naumann
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: aacid, andreas.naumann, ronconirobert
Priority: NOR    
Version First Reported In: 21.12.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: video showing all steps

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 :/
Comment 5 Roberto_Ronconi 2024-06-12 00:44:22 UTC
height of underline is inconsistent
https://gitlab.freedesktop.org/poppler/poppler/-/issues/1215
Hace aƱos que este bug no se corrige