sc/source/ui/drawfunc/fudraw.cxx |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 7459c5781af807a016c1679e66e3f5423f8b6975
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Aug 22 19:43:27 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Aug 22 21:47:58 2025 +0200

    fix warning C6011: Dereferencing NULL pointer 
'this->pView->GetSfxViewShell()'
    
    
C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win_analyze/sc/source/ui/drawfunc/fudraw.cxx(146):
 error C2220: the following warning is treated as an error
    C:    make[1]: *** 
[C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win_analyze/solenv/gbuild/LinkTarget.mk:335:
 
C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win_analyze/workdir/CxxObject/sc/source/ui/drawfunc/fudraw.o]
 Error 2
    make[1]: *** Waiting for unfinished jobs....
    
    after
    commit 34e6b6a7c1d3f6f7eaabe168e993b05049e7f0a4
    Author: Irgaliev Amin <irgalie...@mail.ru>
    Date:   Wed Aug 13 20:22:21 2025 +0400
    
        tdf#79356 - Adding connector support for Calc.
    
    Change-Id: I40e7461953164e69e8e77bab01f796f1637b1ec3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190079
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/drawfunc/fudraw.cxx b/sc/source/ui/drawfunc/fudraw.cxx
index 4ca3c2dcf3e4..ae863da42032 100644
--- a/sc/source/ui/drawfunc/fudraw.cxx
+++ b/sc/source/ui/drawfunc/fudraw.cxx
@@ -136,11 +136,14 @@ bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt)
 
 bool FuDraw::MouseMove(const MouseEvent& rMEvt)
 {
-    pView->GetSfxViewShell()->GetDrawView()->MouseMove(rMEvt, 
pWindow->GetOutDev());
-    //  evaluate modifiers only if in a drawing layer action
-    //  (don't interfere with keyboard shortcut handling)
-    if (pView->IsAction())
-        DoModifiers( rMEvt );
+    if (SfxViewShell* pSfxViewShell = pView->GetSfxViewShell())
+    {
+        pSfxViewShell->GetDrawView()->MouseMove(rMEvt, pWindow->GetOutDev());
+        //  evaluate modifiers only if in a drawing layer action
+        //  (don't interfere with keyboard shortcut handling)
+        if (pView->IsAction())
+            DoModifiers( rMEvt );
+    }
 
     return false;
 }

Reply via email to