diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-12-15 17:37:08 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-16 20:37:39 +0100 |
commit | 291f55edf3d5c1d443cbd9a06bc6f7fd773884e5 (patch) | |
tree | c7caddd7dba7afa7d0eae1d137535a8363ff6317 /sc | |
parent | 032e34d0014d2154feaf97105d2dbe69b290b8c5 (diff) |
assert that no ODF import happens without a BaseURL
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlwrap.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx index a365584f05d8..b63e140a148a 100644 --- a/sc/source/filter/xml/xmlwrap.cxx +++ b/sc/source/filter/xml/xmlwrap.cxx @@ -379,6 +379,7 @@ bool ScXMLImportWrapper::Import( sal_uInt8 nMode, ErrCode& rError ) // Set base URI OSL_ENSURE( pMedium, "There is no medium to get MediaDescriptor from!\n" ); OUString aBaseURL = pMedium ? pMedium->GetBaseURL() : OUString(); + assert(!aBaseURL.isEmpty()); // needed for relative URLs OUString sPropName("BaseURI"); xInfoSet->setPropertyValue( sPropName, uno::makeAny( aBaseURL ) ); |