diff options
author | lecoanet | 2005-06-03 09:03:34 +0000 |
---|---|---|
committer | lecoanet | 2005-06-03 09:03:34 +0000 |
commit | 1e226db904a21b6ac8d1a022e4637d93e2c7e48e (patch) | |
tree | 5692728b380889d8d2c6c2dfc8f4cc766f7d0121 | |
parent | a5d6642612649f32ac7a31d4d3828ea9e6d0fa88 (diff) | |
download | tkzinc-1e226db904a21b6ac8d1a022e4637d93e2c7e48e.zip tkzinc-1e226db904a21b6ac8d1a022e4637d93e2c7e48e.tar.gz tkzinc-1e226db904a21b6ac8d1a022e4637d93e2c7e48e.tar.bz2 tkzinc-1e226db904a21b6ac8d1a022e4637d93e2c7e48e.tar.xz |
Undo the overly paranoid bug fix for segv when gradient is outside the item
-rw-r--r-- | generic/Color.c | 9 |
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. |