]> git.eshelyaron.com Git - emacs.git/commitdiff
(dump_glyph_row): Fix output for NGLYPHS == 2.
authorGerd Moellmann <gerd@gnu.org>
Fri, 23 Mar 2001 12:26:28 +0000 (12:26 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 23 Mar 2001 12:26:28 +0000 (12:26 +0000)
src/ChangeLog
src/xdisp.c

index 1a5f2e9051c562df06b7064b9c70eaf9bfb66fc5..2cd44be917190fd73d3544f063ffcbd641150985 100644 (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.
index 5bef4697058f150dfbab14ddbf20d796c3cdb4b6..712860d51e95b45899a4ee925291ddc97625f12d 100644 (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)