summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2009-06-11 02:32:30 +0000
committerKenichi Handa <handa@m17n.org>2009-06-11 02:32:30 +0000
commita431c5f4a2630123f502cd3e93e2bc6535f15dba (patch)
tree3810f580f100b1c69ac77720c8e3246c65fbbfdd
parent3561b6717a87de2561c73a4c12ea1627b5878c77 (diff)
downloademacs-a431c5f4a2630123f502cd3e93e2bc6535f15dba.tar.gz
(x_get_glyph_overhangs): Fix calculation of right
overhang for the automatic composition case.
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
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;
}