diff options
author | Radek Doulik <rodo@novell.com> | 2011-04-14 15:19:53 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-04-14 16:34:29 +0200 |
commit | 8e3f32d42487a7c8dd4a8db6e998182ef7f14ef4 (patch) | |
tree | 6236d4605421e0de397bf341b404719e469b4231 | |
parent | 1e0780e55b40703e56077ea99fa81242a6fa6699 (diff) |
fix crash in fdo#36203, the referenced shape didn't contain texbody
-rw-r--r-- | oox/source/drawingml/shape.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 39bcd7b26..186412579 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -198,7 +198,7 @@ void Shape::addShape( void Shape::applyShapeReference( const Shape& rReferencedShape ) { - mpTextBody = TextBodyPtr( new TextBody( *rReferencedShape.mpTextBody.get() ) ); + mpTextBody = TextBodyPtr( rReferencedShape.mpTextBody.get() ? new TextBody( *rReferencedShape.mpTextBody.get() ) : new TextBody() ); maShapeProperties = rReferencedShape.maShapeProperties; mpLinePropertiesPtr = LinePropertiesPtr( new LineProperties( *rReferencedShape.mpLinePropertiesPtr.get() ) ); mpFillPropertiesPtr = FillPropertiesPtr( new FillProperties( *rReferencedShape.mpFillPropertiesPtr.get() ) ); |