summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-12-15 17:37:08 +0100
committerMichael Stahl <mstahl@redhat.com>2015-12-16 20:37:39 +0100
commit291f55edf3d5c1d443cbd9a06bc6f7fd773884e5 (patch)
treec7caddd7dba7afa7d0eae1d137535a8363ff6317 /sc
parent032e34d0014d2154feaf97105d2dbe69b290b8c5 (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.cxx1
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 ) );