Kaydet (Commit) 7c76db3c authored tarafından Caolán McNamara's avatar Caolán McNamara

crashtesting: ooo104626-3.odt assert on reexport to odt

try setting DefaultParentBaseURL based on the parent BaseURL
for objects created this way

Change-Id: I8cb1e9692cc4255c0a0b11b6df4bacee737ae184
üst 77846edf
...@@ -774,7 +774,8 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef() ...@@ -774,7 +774,8 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef()
SfxObjectShell* p = pOLENd->GetDoc()->GetPersist(); SfxObjectShell* p = pOLENd->GetDoc()->GetPersist();
assert(p && "No SvPersist present"); assert(p && "No SvPersist present");
uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject( aName ); OUString sDocumentBaseURL = p->getDocumentBaseURL();
uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject(aName, &sDocumentBaseURL);
OSL_ENSURE( !xOLERef.is(), "Calling GetOleRef() recursively is not permitted" ); OSL_ENSURE( !xOLERef.is(), "Calling GetOleRef() recursively is not permitted" );
if ( !xObj.is() ) if ( !xObj.is() )
......
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