summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2012-02-01 13:32:56 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-02-01 13:32:56 +0530
commitaf15127871d38a862ce300ceda5cc74624fda8df (patch)
treed704a4f83df75fddf089401d9e4f817cb222b87f /oox
parent4daa3f54437730fe4e509082faa0d3509c62cea0 (diff)
Fixes crashing while loading manipulated pptx files.
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx3
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