diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-02-04 17:33:44 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2021-02-05 09:52:40 +0100 |
commit | f009782694548358abec1e2a5b346b5a20b5caf2 (patch) | |
tree | 561cd97a659415e4a60ff63ed0cbffbf71631272 /vcl | |
parent | 979aa2a49872176e45dcff2df50211a5dc28c4e0 (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>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/seleng.cxx | 2 |
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; |