From f009782694548358abec1e2a5b346b5a20b5caf2 Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Thu, 4 Feb 2021 17:33:44 +0530 Subject: on SelMouseButtonDown check if window pointer is not null Change-Id: Ib6f7821e685c407d29bed8fa61b9abf0e3535037 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110412 Tested-by: Jenkins CollaboraOffice Reviewed-by: Pranam Lashkari --- vcl/source/window/seleng.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx index d50a4d50b6ac..e1955f315fb2 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 ) + if ( !pFunctionSet || rMEvt.GetClicks() > 1 || !pWin ) return false; sal_uInt16 nModifier = rMEvt.GetModifier() | nLockedMods; -- cgit