1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00

(dump_glyph_row): Fix output for NGLYPHS == 2.

This commit is contained in:
Gerd Moellmann 2001-03-23 12:26:28 +00:00
parent 991786ddc0
commit 091f887891
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-03-23 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
* xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.

View File

@ -11732,12 +11732,11 @@ dump_glyph_row (matrix, vpos, glyphs)
for (area = LEFT_MARGIN_AREA; area < LAST_AREA; ++area)
{
struct glyph *glyph, *glyph_end;
glyph = row->glyphs[area];
glyph_end = glyph + row->used[area];
struct glyph *glyph = row->glyphs[area];
struct glyph *glyph_end = glyph + row->used[area];
/* Glyph for a line end in text. */
if (glyph == glyph_end && glyph->charpos > 0)
if (area == TEXT_AREA && glyph == glyph_end && glyph->charpos > 0)
++glyph_end;
if (glyph < glyph_end)