diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-16 23:28:27 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-01-16 23:28:27 +0000 |
commit | f9a80c06b40634ffef00770731d3b433e465a1b9 (patch) | |
tree | 83af30eeb88c0ef67e3489c0c62e248430ec5340 | |
parent | 2621a323a0ccfe33ff42ed17536db0dc89473a9f (diff) |
[cairo-path-stroke] Convert degenerate splines into lines.
This fixes a discrepancy in the stoker between splines and lines,
whereby the stroker failed to add a dash for a zero length spline.
-rw-r--r-- | src/cairo-path-stroke.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c index 773e9fd9..6464e3d7 100644 --- a/src/cairo-path-stroke.c +++ b/src/cairo-path-stroke.c @@ -882,7 +882,7 @@ _cairo_stroker_curve_to (void *closure, status = _cairo_spline_init (&spline, a, b, c, d); if (status == CAIRO_INT_STATUS_DEGENERATE) - return CAIRO_STATUS_SUCCESS; + return _cairo_stroker_line_to (closure, d); status = _cairo_pen_init_copy (&pen, &stroker->pen); if (status) @@ -966,7 +966,7 @@ _cairo_stroker_curve_to_dashed (void *closure, status = _cairo_spline_init (&spline, a, b, c, d); if (status == CAIRO_INT_STATUS_DEGENERATE) - return CAIRO_STATUS_SUCCESS; + return _cairo_stroker_line_to_dashed (closure, d); /* If the line width is so small that the pen is reduced to a single point, then we have nothing to do. */ |