summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-04-14 15:19:53 +0200
committerRadek Doulik <rodo@novell.com>2011-04-14 16:34:29 +0200
commit7ea86c48b4bb23cc6e41cebf8c38d90e7979ea30 (patch)
tree745c9ad8db3e2e904fbb48256efea7c10fbacf5c
parent28052acea170d51a389959986baf33c287c6d80c (diff)
fix crash in fdo#36203, the referenced shape didn't contain texbody
-rw-r--r--oox/source/drawingml/shape.cxx2
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() ) );