diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-11-29 14:10:13 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-12-01 08:09:10 +0100 |
commit | d26c8dab20e8b4b9ff09cada937abe6150c56840 (patch) | |
tree | 79ae6d465dbf0bcc0ac9cb356517973c1bd8c5bb /sd | |
parent | 51bf4f1bbdd0ea4817b2bbf8e09ecce6d6816b80 (diff) |
tdf#76646 don't open link on Ctrl-click if not required
Change-Id: Ie081f8144e50f576b9f8acb2ddd5b1c891533964
Reviewed-on: https://gerrit.libreoffice.org/45499
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/45555
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 425a4d9c857d..fa5fa58349bc 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -274,6 +274,8 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) SvtSecurityOptions aSecOpt; if (!rMEvt.IsMod1() && aSecOpt.IsOptionSet(SvtSecurityOptions::E_CTRLCLICK_HYPERLINK)) return true; + if (rMEvt.IsMod1() && !aSecOpt.IsOptionSet(SvtSecurityOptions::E_CTRLCLICK_HYPERLINK)) + return true; SfxStringItem aStrItem(SID_FILE_NAME, aVEvt.pURLField->GetURL()); SfxStringItem aReferer(SID_REFERER, mpDocSh->GetMedium()->GetName()); |