Module: synfig
Branch: genete_master
Commit: 735f8148bb46c57954a64f7a857afae13a75401a
URL:    
http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=735f8148bb46c57954a64f7a857afae13a75401a

Author: Carlos Lopez <[email protected]>
Date:   Thu Oct  1 23:39:36 2009 +0200

Fix the undo operation for keyframe set delta.
Missed it at the keyframe widget branch and was producing strange behavior when 
pressing the undo button.

---

 .../src/synfigapp/actions/keyframesetdelta.cpp     |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/synfig-studio/src/synfigapp/actions/keyframesetdelta.cpp 
b/synfig-studio/src/synfigapp/actions/keyframesetdelta.cpp
index 6cd262a..0291d52 100644
--- a/synfig-studio/src/synfigapp/actions/keyframesetdelta.cpp
+++ b/synfig-studio/src/synfigapp/actions/keyframesetdelta.cpp
@@ -225,9 +225,9 @@ Action::KeyframeSetDelta::undo()
 
 //     Time location(keyframe.get_time());
        Time location(get_canvas()->keyframe_list().find(keyframe)->get_time());
-       Time delta(-delta);
+       Time delta2(-delta);
 
-       get_canvas()->keyframe_list().insert_time(location,delta);
+       get_canvas()->keyframe_list().insert_time(location,delta2);
 
        std::vector<synfigapp::ValueDesc>::iterator iter;
        for(iter=value_desc_list.begin();iter!=value_desc_list.end();++iter)
@@ -240,7 +240,7 @@ Action::KeyframeSetDelta::undo()
                );
                if(animated)
                {
-                       animated->insert_time(location,delta);
+                       animated->insert_time(location,delta2);
                        continue;
                }
                ValueNode_DynamicList::Handle dyn_list(
@@ -248,7 +248,7 @@ Action::KeyframeSetDelta::undo()
                );
                if(dyn_list)
                {
-                       dyn_list->insert_time(location,delta);
+                       dyn_list->insert_time(location,delta2);
                        continue;
                }
        }


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to