From 04f17b2631adf874dc0269026f3fbad74330452b Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Wed, 29 Nov 2017 14:10:13 +0100 Subject: tdf#76646 don't open link on Ctrl-click if not required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie081f8144e50f576b9f8acb2ddd5b1c891533964 Reviewed-on: https://gerrit.libreoffice.org/45499 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- sd/source/ui/func/fusel.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sd/source/ui/func') diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 6cc5d7483174..2ca5fbc55908 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -272,6 +272,8 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) SvtSecurityOptions aSecOpt; if (!rMEvt.IsMod1() && aSecOpt.IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) return true; + if (rMEvt.IsMod1() && !aSecOpt.IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) + return true; SfxStringItem aStrItem(SID_FILE_NAME, aVEvt.pURLField->GetURL()); SfxStringItem aReferer(SID_REFERER, mpDocSh->GetMedium()->GetName()); -- cgit