Bug 410041 - I can not click in a reference if I highlight a text
Summary: I can not click in a reference if I highlight a text
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.7.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-20 17:25 UTC by Agustín Kanashiro
Modified: 2024-11-26 15:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
I can't click on the reference if I mark it with Okular tool (269.04 KB, image/png)
2019-07-20 17:25 UTC, Agustín Kanashiro
Details
test PDF file with highlights (2.29 MB, application/pdf)
2019-08-10 18:52 UTC, Agustín Kanashiro
Details
Text without highlighter (173.12 KB, image/png)
2019-08-10 18:53 UTC, Agustín Kanashiro
Details
After applying a highlighter (152.99 KB, image/png)
2019-08-10 18:55 UTC, Agustín Kanashiro
Details

Note You need to log in before you can comment on or make changes to this bug.
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?