diff options
-rw-r--r-- | oox/source/drawingml/diagram/diagramhelper.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/drawingml/diagram/diagramhelper.cxx b/oox/source/drawingml/diagram/diagramhelper.cxx index 6e24a955767d..d67d67b13064 100644 --- a/oox/source/drawingml/diagram/diagramhelper.cxx +++ b/oox/source/drawingml/diagram/diagramhelper.cxx @@ -73,6 +73,11 @@ void AdvancedDiagramHelper::reLayout() // Access the GroupObject representing the SmartArt in DrawingLayer SdrObjGroup* pAnchorObj(dynamic_cast<SdrObjGroup*>(SdrObject::getSdrObjectFromXShape(pParentShape->getXShape()))); + if(!pAnchorObj) + { + SAL_WARN("oox", "missing SdrObjGroup"); + return; + } // Rescue/remember geometric transformation of existing Diagram basegfx::B2DHomMatrix aTransformation; |