From: Carlos Lopez Date: Thu, 1 Oct 2009 21:39:36 +0000 (+0200) Subject: Fix the undo operation for keyframe set delta. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=735f8148bb46c57954a64f7a857afae13a75401a;p=synfig.git 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. --- 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; } }