[cairo-commit] src/cairo-spline.c

Bertram Felgenhauer inte at kemper.freedesktop.org
Thu Mar 26 23:13:04 PDT 2009


 src/cairo-spline.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fe10cd6467f2ec58532dc7c713bb6d08dab08442
Author: Bertram Felgenhauer <int-e at gmx.de>
Date:   Fri Mar 27 07:10:21 2009 +0100

    [spline] fix wrong sign in _cairo_spline_bound.

diff --git a/src/cairo-spline.c b/src/cairo-spline.c
index 948516e..45eedbd 100644
--- a/src/cairo-spline.c
+++ b/src/cairo-spline.c
@@ -289,7 +289,7 @@ _cairo_spline_bound (cairo_spline_add_point_func_t add_point_func,
 		 *   0 < (-b±√delta)/a < 1 \
 		 */ \
 		if (_2ab >= 0) \
-		    feasible = delta > b2 && delta < a*a + b2 - _2ab; \
+		    feasible = delta > b2 && delta < a*a + b2 + _2ab; \
 		else if (-b / a >= 1) \
 		    feasible = delta < b2 && delta > a*a + b2 + _2ab; \
 		else \


More information about the cairo-commit mailing list