From 8750c61fcbf7b38bee8328ff37937a83fc5f79b5 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 22 Oct 2004 05:41:38 +0000 Subject: [PATCH] (compose_glyph_string): Don't get face property at the end of M-text. --- src/draw.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 1.7.10.4