diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-09 14:45:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-09 15:17:08 +0000 |
commit | d9b589379cbc41b920dfe3f10e6d2c53431df676 (patch) | |
tree | 4ea238a2bb63081510d99457055df20a50b9e3f9 /sw | |
parent | f6f73d2e40712dadf69cd73a34d006988669978c (diff) |
crashtesting: fdo85994-1.doc assert on reexport to doc
try setting DefaultParentBaseURL based on the parent BaseURL
for objects created this way
Change-Id: I1a660ff6e4874321e0308d556c7ce0e10a2605fe
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index 98bd0ae546b2..0b253ed59152 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -2924,7 +2924,10 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan pCnt.reset( new comphelper::EmbeddedObjectContainer ); OUString aName; - xIPObj = pCnt->CreateEmbeddedObject( aClassName.GetByteSequence(), aName ); + + OUString sDocumentBaseURL = pDoc->GetPersist()->getDocumentBaseURL(); + xIPObj = pCnt->CreateEmbeddedObject(aClassName.GetByteSequence(), aName, + &sDocumentBaseURL); } if ( xIPObj.is() ) { |