cssvalue: Fix out-of-bounds in array transition code

This commit is contained in:
Benjamin Otte 2012-09-16 18:44:59 +02:00
parent ebf9e9db42
commit f77f6f3322

View File

@ -126,8 +126,8 @@ gtk_css_value_array_transition_repeat (GtkCssValue *start,
for (i = 0; i < n; i++)
{
transitions[i] = _gtk_css_value_transition (start->values[i],
end->values[i],
transitions[i] = _gtk_css_value_transition (start->values[i % start->n_values],
end->values[i % end->n_values],
property_id,
progress);
if (transitions[i] == NULL)