[gtk+/wip/css: 26/37] cssvalue: Fix out-of-bounds in array transition code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css: 26/37] cssvalue: Fix out-of-bounds in array transition code
- Date: Mon, 17 Sep 2012 15:10:32 +0000 (UTC)
commit f189916cdc2a0657885fb325e05b328d386d4861
Author: Benjamin Otte <otte redhat com>
Date: Sun Sep 16 18:44:59 2012 +0200
cssvalue: Fix out-of-bounds in array transition code
gtk/gtkcssarrayvalue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssarrayvalue.c b/gtk/gtkcssarrayvalue.c
index de69c42..dadedba 100644
--- a/gtk/gtkcssarrayvalue.c
+++ b/gtk/gtkcssarrayvalue.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]