From: Kenichi Handa Date: Thu, 11 Jun 2009 02:32:30 +0000 (+0000) Subject: (x_get_glyph_overhangs): Fix calculation of right X-Git-Tag: emacs-pretest-23.0.95~88 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a431c5f4a2630123f502cd3e93e2bc6535f15dba;p=emacs.git (x_get_glyph_overhangs): Fix calculation of right overhang for the automatic composition case. --- diff --git a/src/xdisp.c b/src/xdisp.c index 224dd4853b8..eff922e7422 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -19926,7 +19926,7 @@ x_get_glyph_overhangs (glyph, f, left, right) 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; }