From 00a658ff104623d4e7fc984b5fc82d1a7e2607f2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 26 Jun 2021 19:26:40 +0100 Subject: ofz#35597 Null-dereference READ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add a check for null getTextBody() return unfold it a bit while I'm at it Change-Id: Ib0286048536ad576b520e1adb08fa9b36da9243f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117938 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/oox/ppt/pptshape.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/oox/ppt/pptshape.hxx b/include/oox/ppt/pptshape.hxx index d27a116e2783..ead382b52685 100644 --- a/include/oox/ppt/pptshape.hxx +++ b/include/oox/ppt/pptshape.hxx @@ -54,6 +54,8 @@ class PPTShape final : public oox::drawingml::Shape /// Set if spPr tag is non empty for the shape bool mbHasNoninheritedShapeProperties; + bool IsPlaceHolderCandidate(const SlidePersist& rSlidePersist) const; + public: PPTShape( const oox::ppt::ShapeLocation eShapeLocation, -- cgit