diff options
| author | Gerd Moellmann | 2000-06-06 10:36:48 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-06-06 10:36:48 +0000 |
| commit | 3017fdd1e33e71b1f9ba1c38e633ca0d572cc60b (patch) | |
| tree | ce4379a9ac1902d01d4bd662f303f200242370b0 /src | |
| parent | ed00559de2909e79027b6df69bc76894f3e105da (diff) | |
| download | emacs-3017fdd1e33e71b1f9ba1c38e633ca0d572cc60b.tar.gz emacs-3017fdd1e33e71b1f9ba1c38e633ca0d572cc60b.zip | |
(x_produce_glyphs): Don't xassert `it->descent > 0';
this isn't true for images with `:ascent 100'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 5 |
1 files 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) | |||
| 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 | ||