From 440008d2cd86466912158c9129210e5228a6818e Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 20 Jul 2004 02:28:30 +0000 Subject: [PATCH] (render_glyphs): Fix checking of g->code validity. --- src/draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4