mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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:
parent
824cd9a7ff
commit
4168b216a3
@ -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 */
|
||||
g_value_copy (&next->value, value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user