From: Gerd Moellmann Date: Fri, 23 Mar 2001 12:26:28 +0000 (+0000) Subject: (dump_glyph_row): Fix output for NGLYPHS == 2. X-Git-Tag: emacs-pretest-21.0.101~190 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=091f887891422b7fc5e769b62c76cc6600ccc7b1;p=emacs.git (dump_glyph_row): Fix output for NGLYPHS == 2. --- diff --git a/src/ChangeLog b/src/ChangeLog index 1a5f2e9051c..2cd44be9171 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-03-23 Gerd Moellmann + + * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2. + 2001-03-23 Eli Zaretskii * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined. diff --git a/src/xdisp.c b/src/xdisp.c index 5bef4697058..712860d51e9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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)