Kaydet (Commit) 4a2824e7 authored tarafından Michael Stahl's avatar Michael Stahl

starmath: tdf#97190: don't assert on missing base URL

There are valid scenarios where we don't have a URL at all, such as when
importing MathML from the clipboard.  Also there probably isn't much of
a problem caused by missing base URLs in Math anyway since RDF import is
currently not implemented and i'm not sure if hyperlinks in Math
documents are possible at all.

Change-Id: I13b70ac62542364f329875e292c574883255af5e
üst 1e619fdf
...@@ -142,7 +142,9 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium) ...@@ -142,7 +142,9 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium)
// Set base URI // Set base URI
OUString const baseURI(rMedium.GetBaseURL()); OUString const baseURI(rMedium.GetBaseURL());
assert(!baseURI.isEmpty()); // needed for relative URLs // needed for relative URLs; but it's OK to import e.g. MathML from the
// clipboard without one
SAL_INFO_IF(baseURI.isEmpty(), "starmath", "SmXMLImportWrapper: no base URL");
xInfoSet->setPropertyValue("BaseURI", makeAny(baseURI)); xInfoSet->setPropertyValue("BaseURI", makeAny(baseURI));
sal_Int32 nSteps=3; sal_Int32 nSteps=3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment