mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 08:08:04 +02:00
Revert "[spline] Treat a straight spline as degenerate."
This reverts commit f3d265559a.
This commit was broken as verified by the curve-to-as-line-to test
case.
This commit is contained in:
parent
01acad1659
commit
5bed405b27
1 changed files with 0 additions and 9 deletions
|
|
@ -43,8 +43,6 @@ _cairo_spline_init (cairo_spline_t *spline,
|
|||
const cairo_point_t *a, const cairo_point_t *b,
|
||||
const cairo_point_t *c, const cairo_point_t *d)
|
||||
{
|
||||
cairo_slope_t slope;
|
||||
|
||||
spline->add_point_func = add_point_func;
|
||||
spline->closure = closure;
|
||||
|
||||
|
|
@ -69,13 +67,6 @@ _cairo_spline_init (cairo_spline_t *spline,
|
|||
else
|
||||
_cairo_slope_init (&spline->final_slope, &spline->knots.a, &spline->knots.d);
|
||||
|
||||
_cairo_slope_init (&slope, &spline->knots.a, &spline->knots.d);
|
||||
if (_cairo_slope_compare (&slope, &spline->initial_slope) == 0 &&
|
||||
_cairo_slope_compare (&slope, &spline->final_slope) == 0)
|
||||
{
|
||||
return FALSE; /* just a straight line... */
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue