From 735f8148bb46c57954a64f7a857afae13a75401a Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Thu, 1 Oct 2009 23:39:36 +0200 Subject: [PATCH] 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. --- synfig-studio/src/synfigapp/actions/keyframesetdelta.cpp | 8 ++++---- 1 file 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::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; } } -- 2.7.4