[cairo-commit] cairo/src cairo_gstate.c,1.26,1.27

Carl Worth commit at pdx.freedesktop.org
Fri Oct 31 19:27:35 PST 2003


Committed by: cworth

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

Modified Files:
	cairo_gstate.c 
Log Message:
Do nothing when radius <= 0.0, (which is much better than the current
infinite loop).

Index: cairo_gstate.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_gstate.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** cairo_gstate.c	31 Oct 2003 18:41:37 -0000	1.26
--- cairo_gstate.c	1 Nov 2003 03:27:33 -0000	1.27
***************
*** 952,955 ****
--- 952,958 ----
      cairo_status_t status;
  
+     if (radius <= 0.0)
+ 	return CAIRO_STATUS_SUCCESS;
+ 
      while (angle2 < angle1)
  	angle2 += 2 * M_PI;
***************
*** 977,980 ****
--- 980,986 ----
      cairo_status_t status;
  
+     if (radius <= 0.0)
+ 	return CAIRO_STATUS_SUCCESS;
+ 
      while (angle2 > angle1)
  	angle2 -= 2 * M_PI;





More information about the cairo-commit mailing list