diff options
| author | Kenichi Handa | 2009-06-11 02:32:30 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-06-11 02:32:30 +0000 |
| commit | a431c5f4a2630123f502cd3e93e2bc6535f15dba (patch) | |
| tree | 3810f580f100b1c69ac77720c8e3246c65fbbfdd /src | |
| parent | 3561b6717a87de2561c73a4c12ea1627b5878c77 (diff) | |
| download | emacs-a431c5f4a2630123f502cd3e93e2bc6535f15dba.tar.gz emacs-a431c5f4a2630123f502cd3e93e2bc6535f15dba.zip | |
(x_get_glyph_overhangs): Fix calculation of right
overhang for the automatic composition case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
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) | |||
| 19926 | composition_gstring_width (gstring, glyph->u.cmp.from, | 19926 | composition_gstring_width (gstring, glyph->u.cmp.from, |
| 19927 | glyph->u.cmp.to + 1, &metrics); | 19927 | glyph->u.cmp.to + 1, &metrics); |
| 19928 | if (metrics.rbearing > metrics.width) | 19928 | if (metrics.rbearing > metrics.width) |
| 19929 | *right = metrics.rbearing; | 19929 | *right = metrics.rbearing - metrics.width; |
| 19930 | if (metrics.lbearing < 0) | 19930 | if (metrics.lbearing < 0) |
| 19931 | *left = - metrics.lbearing; | 19931 | *left = - metrics.lbearing; |
| 19932 | } | 19932 | } |