mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 17:18:42 +02:00
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:
parent
ea0595c5ec
commit
e46dc9e17a
2 changed files with 7 additions and 1 deletions
|
|
@ -1904,7 +1904,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;
|
||||
|
||||
if (angle2 > angle1) {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ test_sources = \
|
|||
alpha-similar.c \
|
||||
arc-infinite-loop.c \
|
||||
arc-looping-dash.c \
|
||||
arc-negative.c \
|
||||
api-special-cases.c \
|
||||
big-line.c \
|
||||
big-trap.c \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue