changeset 103379:c4bcff5f6860

(x_get_glyph_overhangs): Fix calculation of right overhang for the static composition case.
author Kenichi Handa <handa@m17n.org>
date Thu, 11 Jun 2009 02:34:05 +0000
parents e0898ed6f3f5
children c74889986273
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Jun 11 02:32:30 2009 +0000
+++ b/src/xdisp.c	Thu Jun 11 02:34:05 2009 +0000
@@ -19913,7 +19913,7 @@
 	{
 	  struct composition *cmp = composition_table[glyph->u.cmp.id];
 
-	  if (cmp->rbearing - cmp->pixel_width)
+	  if (cmp->rbearing > cmp->pixel_width)
 	    *right = cmp->rbearing - cmp->pixel_width;
 	  if (cmp->lbearing < 0);
 	  *left = - cmp->lbearing;