aboutsummaryrefslogtreecommitdiff
path: root/generic/Color.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Color.c')
-rw-r--r--generic/Color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/Color.c b/generic/Color.c
index a395fa1..55c38bd 100644
--- a/generic/Color.c
+++ b/generic/Color.c
@@ -942,6 +942,7 @@ ZnGetGradient(Tcl_Interp *interp,
grad->num_colors_in = num_colors;
grad->type = type;
grad->p.x = grad->p.y = grad->e.x = grad->e.y = 0.0;
+ grad->angle = 0;
switch (type) {
case ZN_AXIAL_GRADIENT:
@@ -969,7 +970,6 @@ ZnGetGradient(Tcl_Interp *interp,
else if (num_coords == 2) {
grad->p.x = coords[0];
grad->p.y = coords[1];
- grad->angle = 0;
}
else if (num_coords == 3) {
grad->p.x = coords[0];