animator: fix a crash in clutter_animator_compute_value

Fix a crasher when there is only one key in the animator.
This commit is contained in:
Øyvind Kolås 2010-03-03 15:46:19 +00:00
parent 824cd9a7ff
commit 4168b216a3

View File

@ -994,6 +994,9 @@ clutter_animator_compute_value (ClutterAnimator *animator,
} }
if (!next)
return FALSE;
/* We're at, or past the end, use the last value */ /* We're at, or past the end, use the last value */
g_value_copy (&next->value, value); g_value_copy (&next->value, value);