Mercurial > emacs
comparison src/xdisp.c @ 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 |
comparison
equal
deleted
inserted
replaced
103378:e0898ed6f3f5 | 103379:c4bcff5f6860 |
---|---|
19911 { | 19911 { |
19912 if (! glyph->u.cmp.automatic) | 19912 if (! glyph->u.cmp.automatic) |
19913 { | 19913 { |
19914 struct composition *cmp = composition_table[glyph->u.cmp.id]; | 19914 struct composition *cmp = composition_table[glyph->u.cmp.id]; |
19915 | 19915 |
19916 if (cmp->rbearing - cmp->pixel_width) | 19916 if (cmp->rbearing > cmp->pixel_width) |
19917 *right = cmp->rbearing - cmp->pixel_width; | 19917 *right = cmp->rbearing - cmp->pixel_width; |
19918 if (cmp->lbearing < 0); | 19918 if (cmp->lbearing < 0); |
19919 *left = - cmp->lbearing; | 19919 *left = - cmp->lbearing; |
19920 } | 19920 } |
19921 else | 19921 else |