sd/source/ui/view/viewshel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6d0d3f97741194983c52e2a33449485b80c8ed3d
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Aug 28 14:13:52 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Aug 28 15:59:03 2022 +0200

    cid#1512438 Dereference before null check
    
    Change-Id: Ibaf4d9250064255dc1bcf2e334c43d1260c295c2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138940
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index efc4d7a7687f..2a249f4a795c 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -770,7 +770,7 @@ bool ViewShell::HandleScrollCommand(const CommandEvent& 
rCEvt, ::sd::Window* pWi
                 double deltaBetweenEvents = (pData->mfScaleDelta - 
mfLastZoomScale) / mfLastZoomScale;
                 mfLastZoomScale = pData->mfScaleDelta;
 
-                if (pData != nullptr && !GetDocSh()->IsUIActive() && 
!xSlideShowController.is())
+                if (!GetDocSh()->IsUIActive() && !xSlideShowController.is())
                 {
                     const ::tools::Long nOldZoom = 
GetActiveWindow()->GetZoom();
                     ::tools::Long nNewZoom;

Reply via email to