oox/source/drawingml/shapecontext.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit d0137bc8a96b5aa8bc6c0f7afb686580d3818192 Author: Karthik Godha <[email protected]> AuthorDate: Wed Nov 26 16:42:02 2025 +0530 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Dec 4 14:55:11 2025 +0100 tdf#169694: Fix PPTX OLE animations import When loading a PPTX file animations related to OLE objects are not imported properly. Change-Id: I4656ee3c855459acedbd850c1c2104b532d59308 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194622 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> (cherry picked from commit dc6a9c436dfca191fae67c31799e2b2d731551cf) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194913 Tested-by: Jenkins Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194978 diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx index 1cd22c7cd422..46eb5d6bdf14 100644 --- a/oox/source/drawingml/shapecontext.cxx +++ b/oox/source/drawingml/shapecontext.cxx @@ -72,8 +72,11 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const break; case XML_cNvPr: { + // If Shape ID is already assigned don't reassign it + if (mpShapePtr->getId().isEmpty()) + mpShapePtr->setId(rAttribs.getStringDefaulted(XML_id)); + mpShapePtr->setHidden( rAttribs.getBool( XML_hidden, false ) ); - mpShapePtr->setId( rAttribs.getStringDefaulted( XML_id ) ); mpShapePtr->setName( rAttribs.getStringDefaulted( XML_name ) ); mpShapePtr->setDescription( rAttribs.getStringDefaulted( XML_descr ) ); mpShapePtr->setTitle(rAttribs.getStringDefaulted(XML_title));
