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

New commits:
commit 71a186aedc6060bb4fb834c847f74c657d700f1e
Author:     Katarina Behrens <bu...@bubli.org>
AuthorDate: Fri Nov 12 14:32:34 2021 +0100
Commit:     Katarina Behrens <bu...@bubli.org>
CommitDate: Tue Nov 16 11:09:42 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 <bu...@bubli.org>

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

Reply via email to