Kaydet (Commit) 96d90bd4 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: check if fallback creation fails

Change-Id: If64965f8ced5840a7687c60f20a407e53938c227
Reviewed-on: https://gerrit.libreoffice.org/42371Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6efac60a
......@@ -906,7 +906,7 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef()
OUString aTmpName;
xObj = p->GetEmbeddedObjectContainer().CreateEmbeddedObject( SvGlobalName( SO3_DUMMY_CLASSID ).GetByteSequence(), aTmpName );
}
// else
if (xObj.is())
{
m_xOLERef.Assign( xObj, m_xOLERef.GetViewAspect() );
m_xOLERef.AssignToContainer( &p->GetEmbeddedObjectContainer(), m_aName );
......
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