diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-25 21:35:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-26 14:25:35 +0200 |
commit | 6ed8c5a0f19901ab413c6610649326b2475c3a8c (patch) | |
tree | 948037d1a61f9e88547b88e107ba6e8a306c3833 /sd | |
parent | a23b44fd9f0119f7ea3523e32875f55c1a07c1cd (diff) |
use officecfg for security options
Change-Id: I9d91fd5b260b82e05aac6567143386742953ecf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119486
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 44cb043aa185..37f3c15fe604 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -113,10 +113,9 @@ FuSelection::~FuSelection() namespace { bool lcl_followHyperlinkAllowed(const MouseEvent& rMEvt) { - SvtSecurityOptions aSecOpt; - if (!rMEvt.IsMod1() && aSecOpt.IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) + if (!rMEvt.IsMod1() && SvtSecurityOptions::IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) return false; - if (rMEvt.IsMod1() && !aSecOpt.IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) + if (rMEvt.IsMod1() && !SvtSecurityOptions::IsOptionSet(SvtSecurityOptions::EOption::CtrlClickHyperlink)) return false; return true; } |