summaryrefslogtreecommitdiff
path: root/vcl
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:16:04 +0100
commit0a2fa32f8756b3c99975df6d98736a8e9abb625a (patch)
tree8903465a91f1911fa3b1b2af83e4a6cffb6e8e2b /vcl
parent34f5057fbea1cfa01356915d0e8edf2296a4149b (diff)
on SelMouseButtonDown check if window pointer is not null
Change-Id: Ib6f7821e685c407d29bed8fa61b9abf0e3535037 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110363 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'vcl')
-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 017ae30b8062..8c4d27a26f9f 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;