summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-21 09:01:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-21 13:29:12 +0200
commit7ecd9e1e6c57d9763ff57e42cccbd32243d2a4db (patch)
treeeae08679adac1904f34dfeb7f26427eac1908860 /slideshow
parentf6afdd94def385c2851f92dd39a3197e540494f4 (diff)
cid#1515521 Dereference before null check
Change-Id: Ida2a6fa69b5ca771c87669b8c58e8febb0f8a2f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140307 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
index f7ffbe1de622..8993c8edbe77 100644
--- a/slideshow/source/engine/shapes/drawshape.cxx
+++ b/slideshow/source/engine/shapes/drawshape.cxx
@@ -394,7 +394,7 @@ namespace slideshow::internal
prepareHyperlinkIndices();
- if(mbContainsPageField && mpCurrMtf && !maBounds.isEmpty())
+ if(mbContainsPageField && !maBounds.isEmpty())
{
// tdf#150402 Use mbContainsPageField that gets set in prepareHyperlinkIndices
// which has to be run anyways, so this will cause no harm in execution speed.