From ccdb7642df27ee84d641dc7c8a63f5fffbce2665 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Wed, 22 Jul 2009 17:47:39 +0200 Subject: [PATCH] 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. --- synfig-studio/trunk/src/synfigapp/actions/keyframesetdelta.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.7.4