[cairo-commit] rcairo/src rb_cairo_context.c,1.10,1.11

Kouhei Sutou commit at pdx.freedesktop.org
Tue May 15 04:28:34 PDT 2007


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv18405/src

Modified Files:
	rb_cairo_context.c 
Log Message:
* src/rb_cairo_context.c (cr_copy_path, cr_copy_path_flat):
  checked status of copied path not context.


Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_context.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- rb_cairo_context.c	3 May 2007 02:47:39 -0000	1.10
+++ rb_cairo_context.c	15 May 2007 11:28:23 -0000	1.11
@@ -1310,17 +1310,21 @@
 static VALUE
 cr_copy_path (VALUE self)
 {
-  VALUE path = CRPATH2RVAL (cairo_copy_path (_SELF));
-  cr_check_status (_SELF);
-  return path;
+  cairo_path_t *path;
+
+  path = cairo_copy_path (_SELF);
+  rb_cairo_check_status (path->status);
+  return CRPATH2RVAL (path);
 }
 
 static VALUE
 cr_copy_path_flat (VALUE self)
 {
-  VALUE path = CRPATH2RVAL (cairo_copy_path_flat (_SELF));
-  cr_check_status (_SELF);
-  return path;
+  cairo_path_t *path;
+
+  path =  cairo_copy_path_flat (_SELF);
+  rb_cairo_check_status (path->status);
+  return CRPATH2RVAL (path);
 }
 
 static VALUE



More information about the cairo-commit mailing list