[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - vcl/source

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 4 12:56:07 UTC 2021


 vcl/source/window/seleng.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit af4d3a492b135a1ef3c612c6c2f6ac50713bd5bf
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Feb 4 17:33:44 2021 +0530
Commit:     Pranam Lashkari <lpranam at collabora.com>
CommitDate: Sun Apr 4 14:55:35 2021 +0200

    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 at collabora.com>
    (cherry picked from commit 0a2fa32f8756b3c99975df6d98736a8e9abb625a)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113540
    Tested-by: Pranam Lashkari <lpranam at collabora.com>

diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index f4eaeef726cc..78f071126ae5 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;


More information about the Libreoffice-commits mailing list