# HG changeset patch # User Kenichi Handa # Date 1283128349 -32400 # Node ID dd01a03cf5095ca50809f0629fc44d0926f3e432 # Parent aa172fa858510a17ece3b74c7ff09db40b9a7850 composite.c (composition_update_it): Fix computing of cmp_it->width. diff -r aa172fa85851 -r dd01a03cf509 src/ChangeLog --- a/src/ChangeLog Mon Aug 30 09:15:54 2010 +0900 +++ b/src/ChangeLog Mon Aug 30 09:32:29 2010 +0900 @@ -1,3 +1,8 @@ +2010-08-30 Kenichi Handa + + * composite.c (composition_update_it): Fix computing of + cmp_it->width. + 2010-08-29 Jan Djärv * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L. diff -r aa172fa85851 -r dd01a03cf509 src/composite.c --- a/src/composite.c Mon Aug 30 09:15:54 2010 +0900 +++ b/src/composite.c Mon Aug 30 09:32:29 2010 +0900 @@ -1440,8 +1440,7 @@ { c = XINT (LGSTRING_CHAR (gstring, i)); cmp_it->nbytes += CHAR_BYTES (c); - cmp_it->width = (LGLYPH_WIDTH (glyph) > 0 - ? CHAR_WIDTH (LGLYPH_CHAR (glyph)) : 0); + cmp_it->width += LGLYPH_WIDTH (glyph) > 0 ? CHAR_WIDTH (c) : 0; } } return c;