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