summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2020-03-18 13:17:32 +0300
committerMichael Meeks <michael.meeks@collabora.com>2020-05-16 19:27:29 +0100
commit764b7dd63551a3f9d973e7c02d9086835f54e7ec (patch)
tree090e1eb373034c268cec5ee8f497bf1f9344d319
parent30a9c349e7b7db7a44c2f8bc7d282fb92d9c6766 (diff)
mobile: fix hyperlinks are not clickable on impress
Change-Id: I77a0ef263814359607d9c1d863f93c55f3493dbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90687 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92211 Tested-by: Jenkins
-rw-r--r--sd/source/ui/func/fusel.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index b425727b67af..18616775ac9e 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -266,6 +266,14 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
{
mpWindow->ReleaseMouse();
+ // If tiled rendering, let client handles URL execution and early returns.
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ SfxViewShell& rSfxViewShell = mpViewShell->GetViewShellBase();
+ rSfxViewShell.libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, aVEvt.pURLField->GetURL().toUtf8().getStr());
+ return true;
+ }
+
if (!lcl_followHyperlinkAllowed(rMEvt))
return true;
@@ -275,14 +283,6 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
SfxViewFrame* pFrame = mpViewShell->GetViewFrame();
mpWindow->ReleaseMouse();
- // If tiled rendering, let client handles URL execution and early returns.
- if (comphelper::LibreOfficeKit::isActive())
- {
- SfxViewShell& rSfxViewShell = mpViewShell->GetViewShellBase();
- rSfxViewShell.libreOfficeKitViewCallback(LOK_CALLBACK_HYPERLINK_CLICKED, aVEvt.pURLField->GetURL().toUtf8().getStr());
- return true;
- }
-
if (rMEvt.IsMod1())
{
// Open in new frame