sd/source/filter/eppt/pptx-animations.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
New commits: commit 3f5d0e1425305507bf545c58d1ade11059960005 Author: Karthik Godha <[email protected]> AuthorDate: Wed Dec 17 10:33:56 2025 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Thu Dec 18 15:33:31 2025 +0100 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 <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/sd/source/filter/eppt/pptx-animations.cxx b/sd/source/filter/eppt/pptx-animations.cxx index edb068dbc942..ad623fd15f40 100644 --- a/sd/source/filter/eppt/pptx-animations.cxx +++ b/sd/source/filter/eppt/pptx-animations.cxx @@ -299,16 +299,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);
