ODP -> PPTX export empty attrName element
In OOXML export attrNameLst must contain at least one attrName element. Export of attrName is skipped if it's empty, this results in invalid schema. (ISO-IEC-29500 19.5.8) bug-file: ooo72169-1.odp Change-Id: I8ebf2b9752fc9e90c21339d7d9dd3507e2518fc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195758 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Stahl <michael.stahl@collabora.com> (cherry picked from commit 3f5d0e1425305507bf545c58d1ade11059960005) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196544 Tested-by: Jenkins
This commit is contained in:
committed by
Michael Stahl
parent
5f80331513
commit
3a933c3af6
@@ -296,16 +296,12 @@ void WriteAnimationAttributeName(const FSHelperPtr& pFS, const OUString& rAttrib
|
||||
attrConv++;
|
||||
}
|
||||
|
||||
pFS->startElementNS(XML_p, XML_attrName);
|
||||
if (pAttribute)
|
||||
{
|
||||
pFS->startElementNS(XML_p, XML_attrName);
|
||||
pFS->writeEscaped(pAttribute);
|
||||
pFS->endElementNS(XML_p, XML_attrName);
|
||||
}
|
||||
else
|
||||
{
|
||||
SAL_WARN("sd.eppt", "unhandled animation attribute name: " << rAttributeName);
|
||||
}
|
||||
pFS->endElementNS(XML_p, XML_attrName);
|
||||
}
|
||||
|
||||
pFS->endElementNS(XML_p, XML_attrNameLst);
|
||||
|
||||
Reference in New Issue
Block a user