# HG changeset patch # User Kenichi Handa # Date 1244687550 0 # Node ID e0898ed6f3f5664d53235cf95f2676f47c2db8a1 # Parent acd98470dccd10df7484594328c06ff793ee810b (x_get_glyph_overhangs): Fix calculation of right overhang for the automatic composition case. diff -r acd98470dccd -r e0898ed6f3f5 src/xdisp.c --- a/src/xdisp.c Thu Jun 11 01:25:40 2009 +0000 +++ b/src/xdisp.c Thu Jun 11 02:32:30 2009 +0000 @@ -19926,7 +19926,7 @@ composition_gstring_width (gstring, glyph->u.cmp.from, glyph->u.cmp.to + 1, &metrics); if (metrics.rbearing > metrics.width) - *right = metrics.rbearing; + *right = metrics.rbearing - metrics.width; if (metrics.lbearing < 0) *left = - metrics.lbearing; }