summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-07-17 13:59:22 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-07-17 17:05:37 +0200
commita2601800845c6500f833684f5e09bf324ac8af09 (patch)
tree05ad8fe4c84bc867bdae31f7c0ae41bfeb4d3f9b /sc/source/core
parent51acd327651b5bca4383478cde3d05d5dbb5371f (diff)
tdf#121039 "Open hyperlink" from context menu does not work
Change-Id: I802a4a64d48befa9c41b7095416f165082a155f2 Reviewed-on: https://gerrit.libreoffice.org/75778 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/global.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 53855d39c4fe..19722265ce67 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -774,12 +774,12 @@ bool ScGlobal::EETextObjEqual( const EditTextObject* pObj1,
return false;
}
-void ScGlobal::OpenURL(const OUString& rURL, const OUString& rTarget)
+void ScGlobal::OpenURL(const OUString& rURL, const OUString& rTarget, bool bIgnoreSettings)
{
// OpenURL is always called in the GridWindow by mouse clicks in some way or another.
// That's why pScActiveViewShell and nScClickMouseModifier are correct.
- if (!ShouldOpenURL())
+ if (!bIgnoreSettings && !ShouldOpenURL())
return;
SfxViewFrame* pViewFrm = SfxViewFrame::Current();