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:
@@ -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 ...?
|
||||
|
Reference in New Issue
Block a user