mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00: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>
|
||||
|
||||
* clutter/clutter-entry.c:
|
||||
|
@ -351,8 +351,12 @@ draw_glyph (PangoRenderer *renderer_,
|
||||
|
||||
if (bm.width < 1 || bm.height < 1 || bm.bitmap == NULL)
|
||||
{
|
||||
x += g->left;
|
||||
y -= g->top;
|
||||
/* Safety on */
|
||||
if (g)
|
||||
{
|
||||
x += g->left;
|
||||
y -= g->top;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user