sd/source/ui/func/fusel.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 895c47abc7fbd56f04b9f5d295885ea60403d62c Author: Mert Tumer <mert.tu...@collabora.com> AuthorDate: Wed Mar 18 13:17:32 2020 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Tue Apr 14 19:40:23 2020 +0200 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.ti...@collabora.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92211 Tested-by: Jenkins 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits