From: handa Date: Tue, 20 Jul 2004 02:28:30 +0000 (+0000) Subject: (render_glyphs): Fix checking of g->code validity. X-Git-Tag: REL-1-1-0~92 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=440008d2cd86466912158c9129210e5228a6818e;p=m17n%2Fm17n-lib.git (render_glyphs): Fix checking of g->code validity. --- diff --git a/src/draw.c b/src/draw.c index 6e5bb57..35b7a66 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1213,7 +1213,8 @@ render_glyphs (MFrame *frame, MDrawWindow win, int x, int y, int width, while (g != gend && g->type == from_g->type && g->rface == rface - && (g->code < 0) == (from_g->code < 0) + && ((g->code == MCHAR_INVALID_CODE) + == (from_g->code == MCHAR_INVALID_CODE)) && g->enabled) width += g++->width;