[cairo-commit] rcairo/src rb_cairo_font_face.c,1.8,1.9
Kouhei Sutou
commit at pdx.freedesktop.org
Sat Aug 16 23:11:55 PDT 2008
Committed by: kou
Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv27949/src
Modified Files:
rb_cairo_font_face.c
Log Message:
* src/rb_cairo_font_face.c
(cr_user_font_face_text_to_glyphs_func): set num_glyphs to -1 if
callback isn't found.
Index: rb_cairo_font_face.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_font_face.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- rb_cairo_font_face.c 17 Aug 2008 03:16:02 -0000 1.8
+++ rb_cairo_font_face.c 17 Aug 2008 06:11:51 -0000 1.9
@@ -415,7 +415,12 @@
id_method_name = cr_id_text_to_glyphs;
}
- if (!NIL_P (receiver))
+ if (NIL_P (receiver))
+ {
+ if (num_glyphs)
+ *num_glyphs = -1;
+ }
+ else
{
cr_user_font_face_invoke_data_t data;
cr_text_to_glyphs_after_hook_data_t after_hook_data;
More information about the cairo-commit
mailing list