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 /starmath | |
parent | 032e34d0014d2154feaf97105d2dbe69b290b8c5 (diff) |
assert that no ODF import happens without a BaseURL
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlimport.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index 48c0d488a727..5ba3826ef2a1 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -141,8 +141,9 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium) new comphelper::PropertySetInfo( aInfoMap ) ) ); // Set base URI - OUString sPropName( "BaseURI" ); - xInfoSet->setPropertyValue( sPropName, makeAny( rMedium.GetBaseURL() ) ); + OUString const baseURI(rMedium.GetBaseURL()); + assert(!baseURI.isEmpty()); // needed for relative URLs + xInfoSet->setPropertyValue("BaseURI", makeAny(baseURI)); sal_Int32 nSteps=3; if ( !(rMedium.IsStorage())) @@ -174,8 +175,7 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium) if ( !aName.isEmpty() ) { - sPropName = "StreamRelPath"; - xInfoSet->setPropertyValue( sPropName, makeAny( aName ) ); + xInfoSet->setPropertyValue("StreamRelPath", makeAny(aName)); } } |