From: handa Date: Fri, 22 Oct 2004 05:41:38 +0000 (+0000) Subject: (compose_glyph_string): Don't get face property at the X-Git-Tag: REL-1-2-0~106 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8750c61fcbf7b38bee8328ff37937a83fc5f79b5;p=m17n%2Fm17n-lib.git (compose_glyph_string): Don't get face property at the end of M-text. --- diff --git a/src/draw.c b/src/draw.c index 7ddd55f..1d5ced0 100644 --- a/src/draw.c +++ b/src/draw.c @@ -270,6 +270,8 @@ compose_glyph_string (MFrame *frame, MText *mt, int from, int to, (void **) faces, 64); mtext_prop_range (mt, Mface, pos, NULL, &face_change, 1); + if (face_change == mtext_nchars (mt)) + face_change++; rface = (num > 0 ? mface__realize (frame, faces, num, size) : default_rface); }