Mercurial > emacs
changeset 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 | 690da56ef774 |
children | bb40802a0af0 |
files | src/xterm.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Tue Jun 06 05:43:12 2000 +0000 +++ b/src/xterm.c Tue Jun 06 10:36:48 2000 +0000 @@ -2249,8 +2249,9 @@ else if (it->what == IT_STRETCH) x_produce_stretch_glyph (it); - /* Accumulate dimensions. */ - xassert (it->ascent >= 0 && it->descent > 0); + /* Accumulate dimensions. Note: can't assume that it->descent > 0 + because this isn't true for images with `:ascent 100'. */ + xassert (it->ascent >= 0 && it->descent >= 0); if (it->area == TEXT_AREA) it->current_x += it->pixel_width;