Commit 091f8878 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

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

parent 991786dd
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> 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
* xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined. * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
......
...@@ -11732,12 +11732,11 @@ dump_glyph_row (matrix, vpos, glyphs) ...@@ -11732,12 +11732,11 @@ dump_glyph_row (matrix, vpos, glyphs)
for (area = LEFT_MARGIN_AREA; area < LAST_AREA; ++area) for (area = LEFT_MARGIN_AREA; area < LAST_AREA; ++area)
{ {
struct glyph *glyph, *glyph_end; struct glyph *glyph = row->glyphs[area];
glyph = row->glyphs[area]; struct glyph *glyph_end = glyph + row->used[area];
glyph_end = glyph + row->used[area];
/* Glyph for a line end in text. */ /* 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; ++glyph_end;
if (glyph < glyph_end) if (glyph < glyph_end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment