diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-02-01 13:32:56 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-02-01 13:32:56 +0530 |
commit | af15127871d38a862ce300ceda5cc74624fda8df (patch) | |
tree | d704a4f83df75fddf089401d9e4f817cb222b87f /oox | |
parent | fdo#34425: [Feature] Persist bgcolor toolbar button. (diff) | |
download | core-af15127871d38a862ce300ceda5cc74624fda8df.tar.gz core-af15127871d38a862ce300ceda5cc74624fda8df.zip |
Fixes crashing while loading manipulated pptx files.
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/diagram/diagram.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 91a475f63468..919400191f52 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 |