summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/seleng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index 85719192aedb..41d0d5f89ec9 100644
--- a/vcl/source/window/seleng.cxx
+++ b/vcl/source/window/seleng.cxx
@@ -115,7 +115,7 @@ void SelectionEngine::CursorPosChanging( bool bShift, bool bMod1 )
bool SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt )
{
nFlags &= ~SelectionEngineFlags::CMDEVT;
- if ( !pFunctionSet || rMEvt.GetClicks() > 1 || !pWin )
+ if ( !pFunctionSet || rMEvt.GetClicks() > 1 )
return false;
sal_uInt16 nModifier = rMEvt.GetModifier() | nLockedMods;