From ce50bfd3369686cfecee5a138bd84ef1107a249d Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Thu, 18 Oct 2007 17:44:48 +0200 Subject: EXA: Skip empty glyphs. --- exa/exa_render.c | 1 + 1 file changed, 1 insertion(+) (limited to 'exa/exa_render.c') diff --git a/exa/exa_render.c b/exa/exa_render.c index 65e67d8d9..cc2f59d6d 100644 --- a/exa/exa_render.c +++ b/exa/exa_render.c @@ -1246,6 +1246,7 @@ exaGlyphs (CARD8 op, y1 = y - glyph->info.y; if (x1 >= pCmpDrw->width || y1 >= pCmpDrw->height || + glyph->info.width == 0 || glyph->info.height == 0 || (x1 + glyph->info.width) <= 0 || (y1 + glyph->info.height) <= 0) goto nextglyph; -- cgit v1.2.3