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>
This commit is contained in:
Szymon Kłos 2017-11-29 14:10:13 +01:00
parent 76a9f10a08
commit 04f17b2631

View file

@ -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());