[cairo-commit] cairo/src cairo_gstate.c,1.55,1.56

Carl Worth commit at pdx.freedesktop.org
Sun Jul 11 18:51:58 PDT 2004


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory pdx:/tmp/cvs-serv16198/src

Modified Files:
	cairo_gstate.c 
Log Message:

        * src/cairo_gstate.c (_cairo_gstate_init_clip): Don't call
        _cairo_surface_set_clip_region with a NULL surface.


Index: cairo_gstate.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_gstate.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** cairo_gstate.c	9 Jul 2004 20:47:46 -0000	1.55
--- cairo_gstate.c	12 Jul 2004 01:51:56 -0000	1.56
***************
*** 1653,1658 ****
  
      /* reset the surface's clip to the whole surface */
!     _cairo_surface_set_clip_region (gstate->surface, 
! 				    gstate->clip.region);
  
      return CAIRO_STATUS_SUCCESS;
--- 1653,1659 ----
  
      /* reset the surface's clip to the whole surface */
!     if (gstate->surface)
! 	_cairo_surface_set_clip_region (gstate->surface, 
! 					gstate->clip.region);
  
      return CAIRO_STATUS_SUCCESS;





More information about the cairo-commit mailing list