oox/source/drawingml/diagram/diagram.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit af15127871d38a862ce300ceda5cc74624fda8df Author: Muthu Subramanian <sumu...@suse.com> Date: Wed Feb 1 13:32:56 2012 +0530 Fixes crashing while loading manipulated pptx files. diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 91a475f..9194001 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -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 _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits