From a2601800845c6500f833684f5e09bf324ac8af09 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Wed, 17 Jul 2019 13:59:22 +0200 Subject: 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 --- sc/source/ui/drawfunc/drawsh.cxx | 2 +- sc/source/ui/drawfunc/drtxtob.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/drawfunc') diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index 5991c57bf56c..1f0a8f6d2ff8 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -248,7 +248,7 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq ) ScMacroInfo* pInfo = ScDrawLayer::GetMacroInfo( pObj ); if ( pInfo && !pInfo->GetHlink().isEmpty() ) - ScGlobal::OpenURL( pInfo->GetHlink(), OUString() ); + ScGlobal::OpenURL( pInfo->GetHlink(), OUString(), true ); } break; diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx index 877434afee80..9a039034dd35 100644 --- a/sc/source/ui/drawfunc/drtxtob.cxx +++ b/sc/source/ui/drawfunc/drtxtob.cxx @@ -324,7 +324,7 @@ void ScDrawTextObjectBar::Execute( SfxRequest &rReq ) const SvxFieldData* pField = pFieldItem->GetField(); if (const SvxURLField* pURLField = dynamic_cast(pField)) { - ScGlobal::OpenURL(pURLField->GetURL(), pURLField->GetTargetFrame()); + ScGlobal::OpenURL(pURLField->GetURL(), pURLField->GetTargetFrame(), true); } } break; -- cgit