summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fusel.cxx
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2020-03-18 13:17:32 +0300
committerAndras Timar <andras.timar@collabora.com>2020-04-14 19:40:23 +0200
commit895c47abc7fbd56f04b9f5d295885ea60403d62c (patch)
treeef325131b86c6b07d222c97b18764b68d6dc7488 /sd/source/ui/func/fusel.cxx
parent3a22be0178b950ab3d21eadab2bc34e7ea93eec8 (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
Diffstat (limited to 'sd/source/ui/func/fusel.cxx')
-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