Mercurial > emacs
diff src/xdisp.c @ 91580:590316ce824f
(x_produce_glyphs): Don't set it->ascent and it->descent
to negative value.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 06 Feb 2008 11:54:51 +0000 |
parents | c70e45a7acfd |
children | d1e53221c4aa |
line wrap: on
line diff
--- a/src/xdisp.c Wed Feb 06 11:53:49 2008 +0000 +++ b/src/xdisp.c Wed Feb 06 11:54:51 2008 +0000 @@ -21398,8 +21398,11 @@ it->pixel_width = cmp->pixel_width; it->ascent = it->phys_ascent = cmp->ascent; + if (it->ascent < 0) + it->ascent = it->phys_ascent = 0; it->descent = it->phys_descent = cmp->descent; - + if (it->descent < 0) + it->descent = it->phys_descent = 0; if (face->box != FACE_NO_BOX) { int thick = face->box_line_width;