tdf#100325 reportdesign: try to set URL as DocumentBaseURL

... if it is missing, similar to what SfxObjectShell::DoLoad() does.

Change-Id: I5b0ae1f892355a5e9786d590c821656b58d29cf2
This commit is contained in:
Michael Stahl 2016-06-15 14:55:06 +02:00
parent 8f75eeebbf
commit cd7671ef5e

View File

@ -1694,6 +1694,11 @@ void SAL_CALL OReportDefinition::load( const uno::Sequence< beans::PropertyValue
throw uno::RuntimeException();
}
if (!aArguments.has("DocumentBaseURL") && !sURL.isEmpty())
{
aArguments.put("DocumentBaseURL", sURL);
}
impl_loadFromStorage_nolck_throw( xDocumentStorage, aArguments.getPropertyValues() );
// TODO: do we need to take ownership of the storage? In opposite to loadFromStorage, we created the storage
// ourself here, and perhaps this means we're also responsible for it ...?