summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2011-03-28 17:00:24 +0200
committerIvo Hinkelmann <ihi@openoffice.org>2011-03-28 17:00:24 +0200
commitb2863c6cd0e9804e3435a8d07fc96ab7a5f0cb64 (patch)
treec6194901daf5f7ccfb8209dcaa105ed3c8ed5918 /vcl/source/window
parent2b03086e2e34909791b51f106b0d356a517ce137 (diff)
parent3c86157dcd78c3dfcef84a9aa5ed0cfb97ac7a11 (diff)
CWS-TOOLING: integrate CWS fwk167
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/seleng.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index 9d7727493490..c92d9dd4130a 100644
--- a/vcl/source/window/seleng.cxx
+++ b/vcl/source/window/seleng.cxx
@@ -200,11 +200,7 @@ void SelectionEngine::CursorPosChanging( sal_Bool bShift, sal_Bool bMod1 )
sal_Bool SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt )
{
nFlags &= (~SELENG_CMDEVT);
- if ( !pFunctionSet || !pWin )
- return sal_False;
- const bool bRightClickCursorPositioning =
- rMEvt.IsRight() && rMEvt.GetClicks() == 1 && !IsInSelection();
- if ( (rMEvt.GetClicks() > 1 || rMEvt.IsRight()) && !bRightClickCursorPositioning )
+ if ( !pFunctionSet || !pWin || rMEvt.GetClicks() > 1 || rMEvt.IsRight() )
return sal_False;
sal_uInt16 nModifier = rMEvt.GetModifier() | nLockedMods;