Kaydet (Commit) 9316effe authored tarafından Michael Stahl's avatar Michael Stahl

SvXMLImportPropertyMapper::importXML: fix assertion to be less silly

Change-Id: I009f0519e34900a1b1447de02d99f32dd0e07410
üst 9a081484
......@@ -256,12 +256,12 @@ void SvXMLImportPropertyMapper::importXML(
if( !bFound )
{
SAL_INFO_IF((XML_NAMESPACE_NONE != nPrefix) &&
!(XML_NAMESPACE_UNKNOWN_FLAG & nPrefix) &&
!bAlienImport, "xmloff.style",
"unknown attribute: \"" << rAttrName << "\"");
if( (XML_NAMESPACE_UNKNOWN_FLAG & nPrefix) || (XML_NAMESPACE_NONE == nPrefix) || bAlienImport )
{
OSL_ENSURE( XML_NAMESPACE_NONE == nPrefix ||
(XML_NAMESPACE_UNKNOWN_FLAG & nPrefix) ||
bAlienImport,
"unknown attribute - might be a new feature?" );
if( !xAttrContainer.is() )
{
// add an unknown attribute container to the properties
......
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