diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-16 22:51:28 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-10-29 17:31:23 +0200 |
commit | 0655198301ec60b387b581a10b991ee442743374 (patch) | |
tree | 550cf51d7a50157b657f9ace326ab5f89437d8a3 /src/cairo.c | |
parent | a1d8763236ccbb7bc11724a87b25bacafce44a7c (diff) | |
download | cairo-0655198301ec60b387b581a10b991ee442743374.tar.gz |
Fix degenerate arcs
Make sure that degenerate arcs become a move_to-line_to sequence
instead of just a move_to.
Fixes get-path-extents.
Diffstat (limited to 'src/cairo.c')
-rw-r--r-- | src/cairo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo.c b/src/cairo.c index cf2824d2d..562161099 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -1856,6 +1856,7 @@ cairo_arc (cairo_t *cr, /* Do nothing, successfully, if radius is <= 0 */ if (radius <= 0.0) { + cairo_line_to (cr, xc, yc); /* might become a move_to */ cairo_line_to (cr, xc, yc); return; } |