From a431c5f4a2630123f502cd3e93e2bc6535f15dba Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 11 Jun 2009 02:32:30 +0000 Subject: (x_get_glyph_overhangs): Fix calculation of right overhang for the automatic composition case. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3