arc: Handle radius == 0 the same no matter the arc direction

Commit a0ea0b63fd fixed cairo_arc() but
did not apply the same patch to cairo_arc_negative(). This patch fixes
that oversight.
This commit is contained in:
Benjamin Otte 2011-02-18 19:56:39 +01:00
parent 9d37bd9630
commit 24ed8b1e60

View file

@ -1896,7 +1896,12 @@ cairo_arc_negative (cairo_t *cr,
return;
/* Do nothing, successfully, if radius is <= 0 */
if (radius <= 0.0)
if (radius <= 0.0) {
cairo_line_to (cr, xc, yc); /* might become a move_to */
cairo_line_to (cr, xc, yc);
return;
}
return;
while (angle2 > angle1)