Kaydet (Commit) 6e2815a0 authored tarafından David Tardon's avatar David Tardon

fdo#66582 avoid crash because of missing model

The SdrObject is still under construction at this point, so it does not
make sense to broadcast changes, because there are not any listeners
anyway.

Change-Id: Ib05e30843b4b0e125d5cae18a481e16fb7e21ba1
üst 5a1c764a
......@@ -150,7 +150,7 @@ SdrObject* OObjectBase::createObject(const uno::Reference< report::XReportCompon
{
sal_Bool bOpaque = sal_False;
_xComponent->getPropertyValue(PROPERTY_OPAQUE) >>= bOpaque;
pNewObj->SetLayer(bOpaque ? RPT_LAYER_FRONT : RPT_LAYER_BACK);
pNewObj->NbcSetLayer(bOpaque ? RPT_LAYER_FRONT : RPT_LAYER_BACK);
}
catch(const uno::Exception&)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment