From: Carlos Lopez Date: Wed, 22 Jul 2009 15:47:39 +0000 (+0200) Subject: Fix bug for the modification of the keyframe length. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ccdb7642df27ee84d641dc7c8a63f5fffbce2665;p=synfig.git Fix bug for the modification of the keyframe length. Now, modify the keyframe length column, shifts the rest of keyframes form the modified keyframe to the end of time. --- diff --git a/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp b/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp index 97898c3..6cd262a 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp @@ -178,7 +178,10 @@ Action::KeyframeSetDelta::perform() // Time location(keyframe.get_time()); Time location(get_canvas()->keyframe_list().find(keyframe)->get_time()); - Time delta(delta); +// This line sets delta to 0s regardless to any previous value of delta. +// I think it was here for symmetry to the undo() operation. +// It was causing that the Set delta operation was faulty. Now works! +// Time delta(delta); get_canvas()->keyframe_list().insert_time(location,delta);