From 6d0d3f97741194983c52e2a33449485b80c8ed3d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 28 Aug 2022 14:13:52 +0100 Subject: cid#1512438 Dereference before null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibaf4d9250064255dc1bcf2e334c43d1260c295c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138940 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/ui/view/viewshel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') 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; -- cgit