diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-14 18:08:51 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-14 18:17:30 +0200 |
commit | a32f8c730ae39d7c791f6c884df8773dac23b420 (patch) | |
tree | e3c30635c0a2f5e597583cdaa9023f08efabd213 /sd | |
parent | f48d1e36c01ad9a433a916bfabb9eeb963a04d0e (diff) |
Related cp#1000084: Make this work for other apps too and set proper default
Extend d98c817cc71e62a2beecc7142062f9ef33a7149b and fix default.
(cherry picked from commit 37c3cf70c724b7402588d1d32d3aa76a965ee41b)
Conflicts:
sc/source/ui/drawfunc/fusel.cxx
sd/source/ui/func/fusel.cxx
Change-Id: I79ad35bd5ad6fbd6e7d260864d4bf40fafb6b604
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fusel.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index b1cfce36733a..a3764e937607 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -19,6 +19,7 @@ #include "fusel.hxx" #include <basic/sbstar.hxx> +#include <svx/svddrgmt.hxx> #include <svx/svdpagv.hxx> #include <svx/svdogrp.hxx> #include <svx/polysc3d.hxx> @@ -225,7 +226,8 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) } if ( ! rMEvt.IsRight()) - mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog); + if (mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog)) + mpView->GetDragMethod()->SetShiftPressed( rMEvt.IsShift() ); bReturn = sal_True; } else @@ -488,6 +490,7 @@ sal_Bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) mpView->MarkPoint(*pHdl); if ( ! rMEvt.IsRight()) mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog); + } } else |