]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_produce_glyphs): Don't xassert `it->descent > 0';
authorGerd Moellmann <gerd@gnu.org>
Tue, 6 Jun 2000 10:36:48 +0000 (10:36 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 6 Jun 2000 10:36:48 +0000 (10:36 +0000)
this isn't true for images with `:ascent 100'.

src/xterm.c

index ef81aa7bb91d7a56795458dcf4085874b129ad08..295ee422b1eb42b017d47a81fd7e49c1fbb7f030 100644 (file)
@@ -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;