From 1e226db904a21b6ac8d1a022e4637d93e2c7e48e Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 3 Jun 2005 09:03:34 +0000 Subject: Undo the overly paranoid bug fix for segv when gradient is outside the item --- generic/Color.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'generic') 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. -- cgit v1.1