comparison 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
comparison
equal deleted inserted replaced
91579:d6609d967fc0 91580:590316ce824f
21396 || cmp->rbearing > cmp->pixel_width)) 21396 || cmp->rbearing > cmp->pixel_width))
21397 it->glyph_row->contains_overlapping_glyphs_p = 1; 21397 it->glyph_row->contains_overlapping_glyphs_p = 1;
21398 21398
21399 it->pixel_width = cmp->pixel_width; 21399 it->pixel_width = cmp->pixel_width;
21400 it->ascent = it->phys_ascent = cmp->ascent; 21400 it->ascent = it->phys_ascent = cmp->ascent;
21401 if (it->ascent < 0)
21402 it->ascent = it->phys_ascent = 0;
21401 it->descent = it->phys_descent = cmp->descent; 21403 it->descent = it->phys_descent = cmp->descent;
21402 21404 if (it->descent < 0)
21405 it->descent = it->phys_descent = 0;
21403 if (face->box != FACE_NO_BOX) 21406 if (face->box != FACE_NO_BOX)
21404 { 21407 {
21405 int thick = face->box_line_width; 21408 int thick = face->box_line_width;
21406 21409
21407 if (thick > 0) 21410 if (thick > 0)