summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/unoidl/unopage.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 39cc6eef9bd6..c0184896f2e8 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -1469,8 +1469,12 @@ Reference< drawing::XShape > SdGenericDrawPage::_CreateShape(SdrObject *pObj) c
pShape->SetShapeType( aShapeType );
}
- // SdXShape aggregates SvxShape
- new SdXShape( SvxShape::getImplementation( xShape ), GetModel() );
+ SvxShape *pSdShape = SvxShape::getImplementation(xShape);
+ if (pSdShape)
+ {
+ // SdXShape aggregates SvxShape
+ new SdXShape(pSdShape, GetModel());
+ }
return xShape;
}
else