From b21976907d1c4bbf0fceee56ec03902e3efcc87f Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 6 Feb 2008 11:54:51 +0000 Subject: [PATCH] (x_produce_glyphs): Don't set it->ascent and it->descent to negative value. --- src/xdisp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 2993fbe912f..6e1b06a5aee 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -21398,8 +21398,11 @@ x_produce_glyphs (it) 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; -- 2.39.5