diff options
author | Carsten Driesner <cd@openoffice.org> | 2011-02-23 16:06:49 +0100 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2011-02-23 16:06:49 +0100 |
commit | 471c2f552f7b1410b9b44ef4d0861fa2059d6315 (patch) | |
tree | b5e09a34ac4f2ec8c58cc2a313093a6b394e0171 /vcl/source/window/seleng.cxx | |
parent | ce5f1dd187c3a7d8113c7653fa887b98fd50aaf6 (diff) |
#i115404# Revert change for i51258 which broke context menu function on right mouse click
Diffstat (limited to 'vcl/source/window/seleng.cxx')
-rw-r--r-- | vcl/source/window/seleng.cxx | 6 |
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; |