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 /reportdesign | |
parent | 032e34d0014d2154feaf97105d2dbe69b290b8c5 (diff) |
assert that no ODF import happens without a BaseURL
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlfilter.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx index 27cd7b8ba921..529fdd61ac89 100644 --- a/reportdesign/source/filter/xml/xmlfilter.cxx +++ b/reportdesign/source/filter/xml/xmlfilter.cxx @@ -512,6 +512,7 @@ bool ORptFilter::implImport( const Sequence< PropertyValue >& rDescriptor ) utl::MediaDescriptor aDescriptor(rDescriptor); uno::Reference<beans::XPropertySet> xProp = comphelper::GenericPropertySet_CreateInstance(new comphelper::PropertySetInfo(pMap)); const OUString sVal( aDescriptor.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_DOCUMENTBASEURL(),OUString()) ); + assert(!sVal.isEmpty()); // needed for relative URLs xProp->setPropertyValue("BaseURI", uno::makeAny(sVal)); const OUString sHierarchicalDocumentName( aDescriptor.getUnpackedValueOrDefault("HierarchicalDocumentName",OUString()) ); xProp->setPropertyValue("StreamRelPath", uno::makeAny(sHierarchicalDocumentName)); |