# HG changeset patch # User Kenichi Handa # Date 1234418060 0 # Node ID 8de12e68959433c8da27d61bab929fcae023db60 # Parent cf97dc31be1785b11101b827856cbf5f22f37561 (fill_gstring_glyph_string): Adjusted for the change of .u.cmp.to. Check if the glyph belongs to the same composition. (append_composite_glyph): Adjusted for the change of .u.cmp.to. diff -r cf97dc31be17 -r 8de12e689594 src/xdisp.c --- a/src/xdisp.c Thu Feb 12 05:48:41 2009 +0000 +++ b/src/xdisp.c Thu Feb 12 05:54:20 2009 +0000 @@ -19688,15 +19688,16 @@ last = s->row->glyphs[s->area] + end; s->cmp_id = glyph->u.cmp.id; s->cmp_from = glyph->u.cmp.from; - s->cmp_to = glyph->u.cmp.to; + s->cmp_to = glyph->u.cmp.to + 1; s->face = FACE_FROM_ID (s->f, face_id); lgstring = composition_gstring_from_id (s->cmp_id); s->font = XFONT_OBJECT (LGSTRING_FONT (lgstring)); glyph++; while (glyph < last && glyph->u.cmp.automatic - && glyph->u.cmp.id == s->cmp_id) - s->cmp_to = (glyph++)->u.cmp.to; + && glyph->u.cmp.id == s->cmp_id + && s->cmp_to == glyph->u.cmp.from) + s->cmp_to = (glyph++)->u.cmp.to + 1; for (i = s->cmp_from; i < s->cmp_to; i++) { @@ -19905,7 +19906,7 @@ struct font_metrics metrics; composition_gstring_width (gstring, glyph->u.cmp.from, - glyph->u.cmp.to, &metrics); + glyph->u.cmp.to + 1, &metrics); if (metrics.rbearing > metrics.width) *right = metrics.rbearing; if (metrics.lbearing < 0) @@ -20653,7 +20654,7 @@ glyph->u.cmp.automatic = 1; glyph->u.cmp.id = it->cmp_it.id; glyph->u.cmp.from = it->cmp_it.from; - glyph->u.cmp.to = it->cmp_it.to; + glyph->u.cmp.to = it->cmp_it.to - 1; } glyph->avoid_cursor_p = it->avoid_cursor_p; glyph->multibyte_p = it->multibyte_p;