From 3017fdd1e33e71b1f9ba1c38e633ca0d572cc60b Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 6 Jun 2000 10:36:48 +0000 Subject: [PATCH] (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't true for images with `:ascent 100'. --- src/xterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.2