changeset 103378:e0898ed6f3f5

(x_get_glyph_overhangs): Fix calculation of right overhang for the automatic composition case.
author Kenichi Handa <handa@m17n.org>
date Thu, 11 Jun 2009 02:32:30 +0000
parents acd98470dccd
children c4bcff5f6860
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}