[cairo-commit] src/cairo-gstate.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Jul 21 07:38:57 PDT 2011


 src/cairo-gstate.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 99628d06cd7943bf20e84a050595c33da6e3ff7d
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Jul 21 15:37:31 2011 +0100

    gstate: Handle NULL clip for in_clip()
    
    A NULL clip implies no clipping at all, and therefore every point is
    inside.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index b6252de..fd5c7b3 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -1291,6 +1291,9 @@ _cairo_gstate_in_clip (cairo_gstate_t	  *gstate,
     if (_cairo_clip_is_all_clipped (clip))
 	return FALSE;
 
+    if (clip == NULL)
+	return TRUE;
+
     _cairo_gstate_user_to_backend (gstate, &x, &y);
 
     if (x <  clip->extents.x ||


More information about the cairo-commit mailing list