summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-02-04 17:33:44 +0530
committerPranam Lashkari <lpranam@collabora.com>2021-02-05 09:52:40 +0100
commitf009782694548358abec1e2a5b346b5a20b5caf2 (patch)
tree561cd97a659415e4a60ff63ed0cbffbf71631272
parent979aa2a49872176e45dcff2df50211a5dc28c4e0 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
-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 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;