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 | 7ea86c48b4bb23cc6e41cebf8c38d90e7979ea30 (patch) | |
tree | 745c9ad8db3e2e904fbb48256efea7c10fbacf5c /oox | |
parent | 28052acea170d51a389959986baf33c287c6d80c (diff) |
fix crash in fdo#36203, the referenced shape didn't contain texbody
Diffstat (limited to 'oox')
-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 18965ed78d1c..86dea33d8eac 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() ) ); |