From: Gerd Moellmann Date: Tue, 6 Jun 2000 10:36:48 +0000 (+0000) Subject: (x_produce_glyphs): Don't xassert `it->descent > 0'; X-Git-Tag: emacs-pretest-21.0.90~3490 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3017fdd1e33e71b1f9ba1c38e633ca0d572cc60b;p=emacs.git (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't true for images with `:ascent 100'. --- diff --git a/src/xterm.c b/src/xterm.c index ef81aa7bb91..295ee422b1e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2249,8 +2249,9 @@ x_produce_glyphs (it) 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;