diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-05-17 12:41:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-17 13:44:35 +0100 |
commit | 5c3c69bb15d324d48f171ce2c3a3f3fea2f08958 (patch) | |
tree | 57a493db8067840679b53a9f63251b132d36e276 /sd | |
parent | 6ebf9cfbf54052d7fae50cdab146cc5c63ba262a (diff) |
tidy this a little bit
Change-Id: I32c03940f36acb6b70c7d846d6e9ffdba84b8807
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx index 6c2396e93a5e..0dc10f44207c 100644 --- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx @@ -1179,11 +1179,8 @@ bool NormalModeHandler::ProcessMotionEvent ( bool bIsProcessed (true); switch (rDescriptor.mnEventCode) { - case ANY_MODIFIER(MOUSE_MOTION | LEFT_BUTTON | SINGLE_CLICK | OVER_UNSELECTED_PAGE): - // SetCurrentPage(rDescriptor.mpHitDescriptor); - // Fallthrough - // A mouse motion without visible substitution starts that. + case ANY_MODIFIER(MOUSE_MOTION | LEFT_BUTTON | SINGLE_CLICK | OVER_UNSELECTED_PAGE): case ANY_MODIFIER(MOUSE_MOTION | LEFT_BUTTON | SINGLE_CLICK | OVER_SELECTED_PAGE): { if (maButtonDownLocation) @@ -1200,10 +1197,10 @@ bool NormalModeHandler::ProcessMotionEvent ( ? InsertionIndicatorHandler::CopyMode : InsertionIndicatorHandler::MoveMode); } + break; } - break; - // A mouse motion not over a page starts a rectangle selection. + // A mouse motion not over a page starts a rectangle selection. case ANY_MODIFIER(MOUSE_MOTION | LEFT_BUTTON | SINGLE_CLICK | NOT_OVER_PAGE): mrSelectionFunction.SwitchToMultiSelectionMode( rDescriptor.maMouseModelPosition, |