Fixes crashing while loading manipulated pptx files.

This commit is contained in:
Muthu Subramanian 2012-02-01 13:32:56 +05:30
parent 4daa3f5443
commit af15127871

View file

@ -340,7 +340,8 @@ void Diagram::addTo( const ShapePtr & pParentShape )
// create Shape hierarchy
ShapeCreationVisitor aCreationVisitor(pParentShape, *this);
mpLayout->getNode()->accept(aCreationVisitor);
if( mpLayout->getNode() )
mpLayout->getNode()->accept( aCreationVisitor );
}
OUString Diagram::getLayoutId() const