diff options
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/animationspersist.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/oox/source/ppt/animationspersist.cxx b/oox/source/ppt/animationspersist.cxx index cd14fe43b374..2c1aaa2c88c7 100644 --- a/oox/source/ppt/animationspersist.cxx +++ b/oox/source/ppt/animationspersist.cxx @@ -141,8 +141,14 @@ namespace oox { namespace ppt { sShapeName = maShapeTarget.msSubShapeId; Any rTarget; - ::oox::drawingml::ShapePtr pShape = pSlide->getShape(sShapeName); - SAL_WARN_IF( !pShape, "oox.ppt", "failed to locate Shape"); + ::oox::drawingml::ShapePtr pShape = pSlide->getShape( sShapeName ); + SAL_WARN_IF( !pShape, "oox.ppt", "failed to locate Shape" ); + + if( !pShape && maShapeTarget.mnType == XML_dgm ) + { + pShape = pSlide->getShape( msValue ); + } + if( pShape ) { Reference< XShape > xShape( pShape->getXShape() ); |