mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
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:
parent
eec9c8526c
commit
41fb7b6a30
@ -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>
|
2008-02-15 Chris Lord <chris@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-entry.c:
|
* clutter/clutter-entry.c:
|
||||||
|
@ -350,9 +350,13 @@ draw_glyph (PangoRenderer *renderer_,
|
|||||||
font_render_glyph (&bm, font, glyph);
|
font_render_glyph (&bm, font, glyph);
|
||||||
|
|
||||||
if (bm.width < 1 || bm.height < 1 || bm.bitmap == NULL)
|
if (bm.width < 1 || bm.height < 1 || bm.bitmap == NULL)
|
||||||
|
{
|
||||||
|
/* Safety on */
|
||||||
|
if (g)
|
||||||
{
|
{
|
||||||
x += g->left;
|
x += g->left;
|
||||||
y -= g->top;
|
y -= g->top;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user