Bug 410041

Summary: I can not click in a reference if I highlight a text
Product: [Applications] okular Reporter: Agustín Kanashiro <akanashiro>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, postix
Priority: NOR    
Version First Reported In: 1.7.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: I can't click on the reference if I mark it with Okular tool
test PDF file with highlights
Text without highlighter
After applying a highlighter

Description Agustín Kanashiro 2019-07-20 17:25:09 UTC
Created attachment 121648 [details]
I can't click on the reference if I mark it with Okular tool

SUMMARY
I have a PDF file that has many references (urls and pages) but if I mark that reference with a color/line I can not click on the reference

STEPS TO REPRODUCE
1. Click on a reference
2. Mark the sentence that contains the reference


OBSERVED RESULT
Can not click on the reference

EXPECTED RESULT
The reference should be clickable

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro KDE 4.19-59-1
KDE Plasma Version: 5.16.3
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2019-08-08 21:52:22 UTC
Does right click help?
Comment 2 Agustín Kanashiro 2019-08-09 00:00:39 UTC
(In reply to Albert Astals Cid from comment #1)
> Does right click help?

Right click opens the highlighter context menu.
It would be great if it opens the link context menu.
Comment 3 Albert Astals Cid 2019-08-09 23:42:09 UTC
The context menu should mention both the link and the higlighter.

Can you please add the file you're having trouble with?
Comment 4 Agustín Kanashiro 2019-08-10 18:52:12 UTC
Created attachment 122050 [details]
test PDF file with highlights

Text in file contains references and links.
If I highlight a reference, it can't be clicked.
Comment 5 Agustín Kanashiro 2019-08-10 18:53:38 UTC
Created attachment 122051 [details]
Text without highlighter

You can see a context menu that allows you to follow the link
Comment 6 Agustín Kanashiro 2019-08-10 18:55:23 UTC
Created attachment 122052 [details]
After applying a highlighter

If you highlight a reference, then it can be accessed in the context menu.
Comment 7 Agustín Kanashiro 2019-08-10 18:56:33 UTC
(In reply to Albert Astals Cid from comment #3)
> The context menu should mention both the link and the higlighter.
> 
> Can you please add the file you're having trouble with?

Done. I also upload two screenshots. The one before applying the highlighter and the other after highlight was applied.
Thanks
Comment 8 Albert Astals Cid 2019-08-11 15:24:47 UTC
I got mistaken, we're not doing what I said we do.

We need to merge  the handling of rightclick in mousePressEvent and mouseReleaseEvent.

I have the feeling there's some code around that was trynig to do that?

Anyone remembers?