[cairo-commit] pycairo/cairo pycairo-surface.c,1.48,1.49

Dave Beckett commit at pdx.freedesktop.org
Fri Jul 29 15:03:48 PDT 2005


Committed by: dajobe

Update of /cvs/cairo/pycairo/cairo
In directory gabe:/tmp/cvs-serv19173

Modified Files:
	pycairo-surface.c 
Log Message:
2005-07-29  Dave Beckett  <Dave.Beckett at bristol.ac.uk>

	* cairo/pycairo-surface.c (surface_finish): Do not use the
	cairo_surface_finish() return value to check for error status,
	instead use cairo_surface_status().

	* cairo/pycairo-font.c (scaled_font_extents): Do not use the
	cairo_scaled_font_extents() return value to check for error
	status, instead use cairo_scaled_font_status().


Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- pycairo-surface.c	25 Jul 2005 04:10:39 -0000	1.48
+++ pycairo-surface.c	29 Jul 2005 22:03:46 -0000	1.49
@@ -126,10 +126,10 @@
 static PyObject *
 surface_finish (PycairoSurface *o)
 {
-    cairo_status_t status = cairo_surface_finish (o->surface);
+    cairo_surface_finish (o->surface);
     Py_CLEAR(o->base);
 
-    if (Pycairo_Check_Status (status))
+    if (Pycairo_Check_Status (cairo_surface_status(o->surface)))
 	return NULL;
     Py_RETURN_NONE;
 }




More information about the cairo-commit mailing list