summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-02-27 16:30:05 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-02-27 16:37:20 +0000
commite20f1a0c76f2185760ca3a7466e25de6beedeaac (patch)
tree32ad057b69e5e4541002677389dba3202640670a
parent102ddd37bb329d41241f434ede0f9cba8424e71e (diff)
[in-fill] Close the path, cf fill()
In order for in-fill treat the path equivalently to a fill, we need to close the path after interpretation.
-rw-r--r--src/cairo-path-in-fill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-path-in-fill.c b/src/cairo-path-in-fill.c
index 431f005b..21cd0bdb 100644
--- a/src/cairo-path-in-fill.c
+++ b/src/cairo-path-in-fill.c
@@ -244,6 +244,8 @@ _cairo_path_fixed_in_fill (cairo_path_fixed_t *path,
&in_fill);
assert (status == CAIRO_STATUS_SUCCESS);
+ _cairo_in_fill_close_path (&in_fill);
+
switch (fill_rule) {
case CAIRO_FILL_RULE_EVEN_ODD:
*is_inside = in_fill.winding & 1;