From: handa Date: Thu, 21 Oct 2004 06:35:03 +0000 (+0000) Subject: (compose_glyph_string): Fix for the case of category X-Git-Tag: REL-1-2-0~108 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=767e533b68dba030e5ea634eec04c149555151e5;p=m17n%2Fm17n-lib.git (compose_glyph_string): Fix for the case of category being Mnil. --- 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;