[cairo] problem in _cairo_gstate_glyph_extent today?
John Ellson
ellson at research.att.com
Sat Jan 15 08:51:24 PST 2005
I don't fully understand the mechanism of the crash, probably some sort
of invalid doubles,
anyway, the problem is that the extents struct is not initialized.
The patch below seems to fix it.
John
Index: src/cairo_gstate.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_gstate.c,v
retrieving revision 1.70
diff -u -r1.70 cairo_gstate.c
--- src/cairo_gstate.c 11 Jan 2005 21:28:51 -0000 1.70
+++ src/cairo_gstate.c 15 Jan 2005 16:42:32 -0000
@@ -2431,8 +2431,8 @@
* by running the corners through the font matrix and
* expanding the bounding box as necessary
*/
- x = extents->x_bearing;
- y = extents->y_bearing;
+ x = origin_extents.x_bearing;
+ y = origin_extents.y_bearing;
cairo_matrix_transform_point (&gstate->font_matrix,
&x, &y);
More information about the cairo
mailing list