[Libreoffice-commits] .: oox/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Tue Jan 31 23:44:55 PST 2012


 oox/source/drawingml/diagram/diagram.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit af15127871d38a862ce300ceda5cc74624fda8df
Author: Muthu Subramanian <sumuthu at 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


More information about the Libreoffice-commits mailing list