From 091f887891422b7fc5e769b62c76cc6600ccc7b1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 23 Mar 2001 12:26:28 +0000 Subject: [PATCH] (dump_glyph_row): Fix output for NGLYPHS == 2. --- src/ChangeLog | 4 ++++ src/xdisp.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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) -- 2.39.2