2008-02-15 Matthew Allum <mallum@openedhand.com>

* clutter/pango/pangoclutter-render.c: (draw_glyph):
        More safety checks (#796, Tero Saarni)
This commit is contained in:
Matthew Allum 2008-02-15 20:22:08 +00:00
parent eec9c8526c
commit 41fb7b6a30
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-15 Matthew Allum <mallum@openedhand.com>
* clutter/pango/pangoclutter-render.c: (draw_glyph):
More safety checks (#796, Tero Saarni)
2008-02-15 Chris Lord <chris@openedhand.com>
* clutter/clutter-entry.c:

View File

@ -350,9 +350,13 @@ draw_glyph (PangoRenderer *renderer_,
font_render_glyph (&bm, font, glyph);
if (bm.width < 1 || bm.height < 1 || bm.bitmap == NULL)
{
/* Safety on */
if (g)
{
x += g->left;
y -= g->top;
}
return;
}