sd/source/ui/animations/CustomAnimationPane.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 41b679f73e2001cd2840dd1256911e0b79bacaf8
Author:     Katarina Behrens <[email protected]>
AuthorDate: Fri Nov 12 14:32:34 2021 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Nov 17 13:27:14 2021 +0100

    tdf#135033: Make undo of adding and editing animations possible
    
    weird this somehow sneaked out when converting custom animation
    pane to sidebar when undoing other operations (delete etc.) stayed
    in place
    
    Change-Id: I6287682839d0e0401cc60bf82257d86765f3a858
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125110
    Tested-by: Jenkins
    Reviewed-by: Katarina Behrens <[email protected]>
    (cherry picked from commit 71a186aedc6060bb4fb834c847f74c657d700f1e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125357
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx 
b/sd/source/ui/animations/CustomAnimationPane.cxx
index 4585fd335bdc..d17f1460b91f 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1832,6 +1832,7 @@ void CustomAnimationPane::onAdd()
         updateMotionPathTags();
     }
 
+    addUndo();
     mrBase.GetDocShell()->SetModified();
 
     updateControls();
@@ -2133,6 +2134,7 @@ IMPL_LINK_NOARG(CustomAnimationPane, SelectionHandler, 
Timer*, void)
         pEffectSequence->replace( pEffect, pDescriptor, fDuration );
     }
 
+    addUndo();
     onPreview(false);
 }
 

Reply via email to