aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/Color.c b/generic/Color.c
index a0c8493..49fadea 100644
--- a/generic/Color.c
+++ b/generic/Color.c
@@ -705,7 +705,7 @@ ReduceGradient(Tk_Window tkwin,
}
/*printf("adding a color at end\n");*/
}
- grad->actual_colors[grad->num_actual_colors].position = 100;
+ grad->actual_colors[grad->num_actual_colors-1].position = 100;
//printf("Out of ReduceGradient\n");
}