sd/source/filter/eppt/pptx-animations-nodectx.cxx |    5 +++++
 sd/source/filter/eppt/pptx-animations.cxx         |    2 --
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 75e739ff536ffbcdbfe8472edbdfe1b2d4a7ae5c
Author:     Karthik Godha <[email protected]>
AuthorDate: Tue Dec 30 13:30:15 2025 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Jan 2 14:08:10 2026 +0100

    ODP->PPTX: Skip exporting Physics-based animations
    
    These animations are already ignored, but we still export the animation
    node without any animations.
    
    bug document: tdf136152-1.odp
    
    Change-Id: Id8d9304649ebda2ad1de9f494e0cdc71f625dcc5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196323
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sd/source/filter/eppt/pptx-animations-nodectx.cxx 
b/sd/source/filter/eppt/pptx-animations-nodectx.cxx
index 00a306345c58..9ec03c1914ea 100644
--- a/sd/source/filter/eppt/pptx-animations-nodectx.cxx
+++ b/sd/source/filter/eppt/pptx-animations-nodectx.cxx
@@ -211,6 +211,11 @@ void NodeContext::initValid(bool bHasValidChild, bool 
bIsIterateChild)
             }
         }
     }
+    else if (nType == AnimationNodeType::ANIMATEPHYSICS)
+    {
+        // ignore we don't support exporting this node type
+        mbValid = false;
+    }
     else
     {
         Reference<XAnimate> xAnimate(mxNode, UNO_QUERY);
diff --git a/sd/source/filter/eppt/pptx-animations.cxx 
b/sd/source/filter/eppt/pptx-animations.cxx
index e14c8916b304..b0b353689c5f 100644
--- a/sd/source/filter/eppt/pptx-animations.cxx
+++ b/sd/source/filter/eppt/pptx-animations.cxx
@@ -961,8 +961,6 @@ void 
PPTXAnimationExport::WriteAnimationNodeCommonPropsStart()
             {
                 if (pChildContext->isOnSubTnLst())
                     bSubTnLst = true;
-                else if (pChildContext->getNode()->getType() == 
AnimationNodeType::ANIMATEPHYSICS)
-                    ; // ignore we don't support exporting this node type
                 else
                 {
                     if (!bWroteChildTnList)

Reply via email to