Add a comment about the point choice when capping degenerate paths

This commit is contained in:
Jeff Muizelaar 2007-02-19 16:06:56 -05:00
parent a1a4d6966e
commit 9f3fb4f753

View file

@ -474,6 +474,9 @@ _cairo_stroker_add_caps (cairo_stroker_t *stroker)
/* pick an arbitrary slope to use */
cairo_slope_t slope = {1, 0};
cairo_stroke_face_t face;
/* arbitrarily choose first_point
* first_point and current_point should be the same */
_compute_face (&stroker->first_point, &slope, stroker, &face);
status = _cairo_stroker_add_leading_cap (stroker, &face);