Mercurial > emacs
comparison src/xterm.c @ 29458:679888a29324
(x_produce_glyphs): Don't xassert `it->descent > 0';
this isn't true for images with `:ascent 100'.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 06 Jun 2000 10:36:48 +0000 |
parents | 28c6b6d0ed6b |
children | e222720769a0 |
comparison
equal
deleted
inserted
replaced
29457:690da56ef774 | 29458:679888a29324 |
---|---|
2247 else if (it->what == IT_IMAGE) | 2247 else if (it->what == IT_IMAGE) |
2248 x_produce_image_glyph (it); | 2248 x_produce_image_glyph (it); |
2249 else if (it->what == IT_STRETCH) | 2249 else if (it->what == IT_STRETCH) |
2250 x_produce_stretch_glyph (it); | 2250 x_produce_stretch_glyph (it); |
2251 | 2251 |
2252 /* Accumulate dimensions. */ | 2252 /* Accumulate dimensions. Note: can't assume that it->descent > 0 |
2253 xassert (it->ascent >= 0 && it->descent > 0); | 2253 because this isn't true for images with `:ascent 100'. */ |
2254 xassert (it->ascent >= 0 && it->descent >= 0); | |
2254 if (it->area == TEXT_AREA) | 2255 if (it->area == TEXT_AREA) |
2255 it->current_x += it->pixel_width; | 2256 it->current_x += it->pixel_width; |
2256 | 2257 |
2257 it->descent += it->extra_line_spacing; | 2258 it->descent += it->extra_line_spacing; |
2258 | 2259 |