[cairo-commit] rcairo/src rb_cairo_context.c,1.11,1.12
Kouhei Sutou
commit at pdx.freedesktop.org
Tue May 15 04:30:16 PDT 2007
Committed by: kou
Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv20308/src
Modified Files:
rb_cairo_context.c
Log Message:
* src/rb_cairo_context.c (cr_set_font_face): accepted nil as font face.
Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_context.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- rb_cairo_context.c 15 May 2007 11:28:23 -0000 1.11
+++ rb_cairo_context.c 15 May 2007 11:30:05 -0000 1.12
@@ -1113,7 +1113,7 @@
static VALUE
cr_set_font_face (VALUE self, VALUE face)
{
- cairo_set_font_face (_SELF, RVAL2CRFONTFACE (face));
+ cairo_set_font_face (_SELF, NIL_P (face) ? NULL : RVAL2CRFONTFACE (face));
cr_check_status (_SELF);
return self;
}
More information about the cairo-commit
mailing list