diff --git a/src/cairo.c b/src/cairo.c index 73dbaeefb..8c19cd11b 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -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) { diff --git a/test/Makefile.sources b/test/Makefile.sources index e88c85cc5..207dcd063 100644 --- a/test/Makefile.sources +++ b/test/Makefile.sources @@ -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 \