summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-19 02:36:28 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-19 02:38:40 +0200
commit170a473597534cf59887b1d817538322e7039862 (patch)
treecd3c2d93771b6a35a23687400bddad0dcf80be72
parenta07d5aef3f251855a4856f1e59649194a07899e5 (diff)
don't try to open in new window by default, tdf#70959
This fixes a regression from 99932fa89be0e041abf5ce5da3271600c841ff19 Change-Id: Idcee34c97173fb79503a560f5246230a9bfaeb51
-rw-r--r--sc/source/core/data/global.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index e764bfe8e4c8..e9df0052ab26 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 )