[cairo-commit] libsvg-cairo/src svg_cairo.c,1.35,1.36

Carl Worth commit at pdx.freedesktop.org
Mon May 2 07:42:03 PDT 2005


Committed by: cworth

Update of /cvs/cairo/libsvg-cairo/src
In directory gabe:/tmp/cvs-serv18278/src

Modified Files:
	svg_cairo.c 
Log Message:

        * src/svg_cairo.c: (_svg_cairo_render_path): Fix to correctly
        handle shapes with fill="none" and stroke="none" by calling
        cairo_new_path so that the path isn't later drawn by subsequent
        shapes.


Index: svg_cairo.c
===================================================================
RCS file: /cvs/cairo/libsvg-cairo/src/svg_cairo.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- svg_cairo.c	26 Apr 2005 20:00:00 -0000	1.35
+++ svg_cairo.c	2 May 2005 14:42:01 -0000	1.36
@@ -1072,6 +1072,12 @@
 	cairo_stroke (svg_cairo->cr);
     }
 
+    /* This is only strictly necessary in the odd case of both
+     * fill_paint->type and stroke_paint->type being false. But it's
+     * easier, and doesn't hurt much to just do it here
+     * unconditionally. */
+    cairo_new_path (svg_cairo->cr);
+
     return _cairo_status_to_svg_status (cairo_status (svg_cairo->cr));
 }
 




More information about the cairo-commit mailing list