oox/source/drawingml/shapecontext.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 3f644195a65b1d654af4ba17d6c800d17d58a3d9
Author:     Karthik Godha <[email protected]>
AuthorDate: Wed Nov 26 16:42:02 2025 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Mon Dec 15 15:55:05 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/+/195642
    Tested-by: Michael Stahl <[email protected]>

diff --git a/oox/source/drawingml/shapecontext.cxx 
b/oox/source/drawingml/shapecontext.cxx
index 2dc77a0e676f..91983e9d5413 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));

Reply via email to