changeset 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 d6609d967fc0
children 93691642bd78
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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;