2006-02-11 Behdad Esfahbod <behdad@gnome.org>
+ Bug 330795 – pango_renderer_draw_glyph segfaults when trying to call
+ the class vfunc
+ Opened by Torsten Schoenfeld
+
+ * pango/pango-renderer.c (pango_renderer_draw_trapezoid,
+ pango_renderer_draw_glyph): Bail if method is not implemented.
+
+2006-02-11 Behdad Esfahbod <behdad@gnome.org>
+
* === Released 1.11.5 ===
* configure.in: Version 1.11.5
g_return_if_fail (PANGO_IS_RENDERER (renderer));
g_return_if_fail (renderer->active_count > 0);
- PANGO_RENDERER_GET_CLASS (renderer)->draw_trapezoid (renderer, part,
- y1_, x11, x21,
- y2, x12, x22);
+ if (PANGO_RENDERER_GET_CLASS (renderer)->draw_trapezoid)
+ PANGO_RENDERER_GET_CLASS (renderer)->draw_trapezoid (renderer, part,
+ y1_, x11, x21,
+ y2, x12, x22);
}
/**
if (glyph == PANGO_GLYPH_EMPTY) /* glyph PANGO_GLYPH_EMPTY never renders */
return;
- PANGO_RENDERER_GET_CLASS (renderer)->draw_glyph (renderer, font, glyph, x, y);
+ if (PANGO_RENDERER_GET_CLASS (renderer)->draw_glyph)
+ PANGO_RENDERER_GET_CLASS (renderer)->draw_glyph (renderer, font, glyph, x, y);
}
/**