[cairo-commit] cairo/src cairo-clip.c,1.6,1.7

Carl Worth commit at pdx.freedesktop.org
Mon Nov 7 10:48:03 PST 2005


Committed by: cworth

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

Modified Files:
	cairo-clip.c 
Log Message:

2005-11-07  Carl Worth  <cworth at cworth.org>

        * src/cairo-clip.c (_cairo_clip_init_copy): Fix to copy region if
        NULL.


Index: cairo-clip.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-clip.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cairo-clip.c	7 Nov 2005 18:46:23 -0000	1.6
+++ cairo-clip.c	7 Nov 2005 18:48:01 -0000	1.7
@@ -89,7 +89,9 @@
 
     clip->serial = other->serial;
 
-    if (other->region) {
+    if (other->region == NULL) {
+	clip->region = other->region;
+    } else {
 	clip->region = pixman_region_create ();
 	pixman_region_copy (clip->region, other->region);
     }



More information about the cairo-commit mailing list