Kaydet (Commit) 36e49282 authored tarafından Miklos Vajna's avatar Miklos Vajna

OFormsRootImport::CreateChildContext: survive a missing css.form.Forms

At least moz406390-1.odt has an unreferenced (so uninteresting in
practice) <form:form> block. Till there is a real benefit of it, better
not add form/database components to the Android component list but teach
the user of such code to fail gracefully.

Change-Id: I165a09fefa887da7b78a917c43ecc17d8f0ba3e2
üst 671bf233
......@@ -53,7 +53,15 @@ namespace xmloff
SvXMLImportContext* OFormsRootImport::CreateChildContext( sal_uInt16 _nPrefix, const OUString& _rLocalName,
const Reference< XAttributeList>& xAttrList )
{
return GetImport().GetFormImport()->createContext( _nPrefix, _rLocalName, xAttrList );
SvXMLImportContext* pRet = 0;
try
{
pRet = GetImport().GetFormImport()->createContext( _nPrefix, _rLocalName, xAttrList );
} catch (const Exception& rException)
{
SAL_WARN("xmloff.forms", "OFormsRootImport::CreateChildContext: " << rException.Message);
}
return pRet;
}
void OFormsRootImport::implImportBool(const Reference< XAttributeList >& _rxAttributes, OfficeFormsAttributes _eAttribute,
......
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