[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Tue Apr 19 00:39:11 UTC 2016
sc/source/core/data/global.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 170a473597534cf59887b1d817538322e7039862
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Apr 19 02:36:28 2016 +0200
don't try to open in new window by default, tdf#70959
This fixes a regression from 99932fa89be0e041abf5ce5da3271600c841ff19
Change-Id: Idcee34c97173fb79503a560f5246230a9bfaeb51
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index e764bfe..e9df005 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -901,7 +901,8 @@ void ScGlobal::OpenURL(const OUString& rURL, const OUString& rTarget, const SdrM
}
SfxStringItem aUrl( SID_FILE_NAME, rURL );
SfxStringItem aTarget( SID_TARGETNAME, rTarget );
- aTarget.SetValue("_blank");
+ if ( nScClickMouseModifier & KEY_SHIFT ) // control-click -> into new window
+ aTarget.SetValue("_blank");
SfxViewFrame* pFrame = nullptr;
OUString aReferName;
if ( pScActiveViewShell )
More information about the Libreoffice-commits
mailing list