aboutsummaryrefslogtreecommitdiff
path: root/generic/Color.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Color.c')
-rw-r--r--generic/Color.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/generic/Color.c b/generic/Color.c
index e79c60e..2165c99 100644
--- a/generic/Color.c
+++ b/generic/Color.c
@@ -934,15 +934,6 @@ ZnGetGradient(Tcl_Interp *interp,
scan_ptr = next_ptr + 1;
next_ptr = strchr(scan_ptr, '|');
}
- // If the gradient is specified using two points,
- // test whether the origin point is lower than the corner point.
- if (num_coords == 4) {
- if ((coords[2] < coords[0]) || (coords[3] < coords[1])) {
- Tcl_AppendResult(interp, "Origin point is greater than corner in gradient \"",
- desc, "\"", NULL);
- goto grad_err1;
- }
- }
/*
* Create the gradient structure.