[cairo-commit] src/cairo-path-in-fill.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Feb 27 08:38:27 PST 2009


 src/cairo-path-in-fill.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e20f1a0c76f2185760ca3a7466e25de6beedeaac
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Feb 27 16:30:05 2009 +0000

    [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.

diff --git a/src/cairo-path-in-fill.c b/src/cairo-path-in-fill.c
index 431f005..21cd0bd 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;


More information about the cairo-commit mailing list