From 767e533b68dba030e5ea634eec04c149555151e5 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 21 Oct 2004 06:35:03 +0000 Subject: [PATCH] (compose_glyph_string): Fix for the case of category being Mnil. --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index a9866f8..7ddd55f 100644 --- a/src/draw.c +++ b/src/draw.c @@ -291,7 +291,7 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, category = mchar_get_prop (c, Mcategory); if (category == McatCf) g_tmp.category = GLYPH_CATEGORY_FORMATTER; - else if (MSYMBOL_NAME (category)[0] == 'M') + else if (category != Mnil && MSYMBOL_NAME (category)[0] == 'M') g_tmp.category = GLYPH_CATEGORY_MODIFIER; else g_tmp.category = GLYPH_CATEGORY_NORMAL; -- 1.7.10.4