[Libreoffice-commits] core.git: oox/source
Miklos Vajna
vmiklos at collabora.co.uk
Sat Apr 19 08:29:28 PDT 2014
oox/source/ppt/pptshape.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1339fa3fbe0d25cb08c438a6915ced41d3414294
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Sat Apr 19 17:18:28 2014 +0200
coverity#735764 Unchecked dynamic_cast
Change-Id: Ic7dc70c1052f5ab04a3e1795549ca43e2e0f2587
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx
index 11b25ee..953e2b8 100644
--- a/oox/source/ppt/pptshape.cxx
+++ b/oox/source/ppt/pptshape.cxx
@@ -279,7 +279,7 @@ void PPTShape::addShape(
// SAL_INFO("oox.ppt","combined master text list style");
// aMasterTextListStyle->dump();
}
- if( pPPTPlaceholder->mpPlaceholder.get() ) {
+ if( pPPTPlaceholder && pPPTPlaceholder->mpPlaceholder.get() ) {
SAL_INFO("oox.ppt","placeholder has parent placeholder: " << pPPTPlaceholder->mpPlaceholder->getId() << " type: " << lclDebugSubType( pPPTPlaceholder->mpPlaceholder->getSubType() ) << " index: " << pPPTPlaceholder->mpPlaceholder->getSubTypeIndex().get() );
SAL_INFO("oox.ppt","has textbody " << (pPPTPlaceholder->mpPlaceholder->getTextBody() != 0) );
TextListStylePtr pPlaceholderStyle = getSubTypeTextListStyle( rSlidePersist, pPPTPlaceholder->mpPlaceholder->getSubType() );
More information about the Libreoffice-commits
mailing list