summaryrefslogtreecommitdiff
path: root/vcl/source
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:15:59 +0100
commitf2276af636e0e0b217d1ef316e1625a3cd004459 (patch)
tree71f898faf810a384547ad22ac9c5b99b862c0527 /vcl/source
parenta1d516a9b96fb8b40edc5934e69bf2b0a1d2ecd3 (diff)
on SelMouseButtonDown check if window pointer is not null
Change-Id: Ib6f7821e685c407d29bed8fa61b9abf0e3535037 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110362 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'vcl/source')
-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 41d0d5f89ec9..85719192aedb 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;