mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 21:08:10 +02:00
[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.
This commit is contained in:
parent
2621a323a0
commit
f9a80c06b4
1 changed files with 2 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue