diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-28 14:13:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-28 15:59:03 +0200 |
commit | 6d0d3f97741194983c52e2a33449485b80c8ed3d (patch) | |
tree | 8e17f47510933940e2c71221ae958e45966fe767 /sd/source | |
parent | c1156e89b8993c5f71af80ad3919bd1e666a2905 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |