sd/source/filter/eppt/pptx-animations.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
New commits: commit 576f11b495e2dc29f1f2e85eb9607165720e39cc Author: Karthik Godha <[email protected]> AuthorDate: Wed Dec 17 10:33:56 2025 +0530 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Jan 8 11:50:46 2026 +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]> (cherry picked from commit 3f5d0e1425305507bf545c58d1ade11059960005) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196544 Tested-by: Jenkins Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196669 diff --git a/sd/source/filter/eppt/pptx-animations.cxx b/sd/source/filter/eppt/pptx-animations.cxx index 3890e392d2aa..10b6fbc6211f 100644 --- a/sd/source/filter/eppt/pptx-animations.cxx +++ b/sd/source/filter/eppt/pptx-animations.cxx @@ -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);
