vcl/source/window/seleng.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f2276af636e0e0b217d1ef316e1625a3cd004459 Author: Pranam Lashkari <[email protected]> AuthorDate: Thu Feb 4 17:33:44 2021 +0530 Commit: Pranam Lashkari <[email protected]> CommitDate: Fri Feb 5 09:15:59 2021 +0100 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 <[email protected]> Reviewed-by: Pranam Lashkari <[email protected]> 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; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
