changeset 70698:102448f41c25

(display_tool_bar_line): Eliminate x_before variable.
author Kim F. Storm <storm@cua.dk>
date Wed, 17 May 2006 22:37:25 +0000
parents d6f5b85d7429
children 434948c350d2
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Wed May 17 22:26:51 2006 +0000
+++ b/src/xdisp.c	Wed May 17 22:37:25 2006 +0000
@@ -9491,7 +9491,7 @@
 
   while (it->current_x < max_x)
     {
-      int x_before, x, n_glyphs_before, i, nglyphs;
+      int x, n_glyphs_before, i, nglyphs;
       struct it it_before;
 
       /* Get the next display element.  */
@@ -9504,14 +9504,14 @@
 	}
 
       /* Produce glyphs.  */
-      x_before = it->current_x;
-      n_glyphs_before = it->glyph_row->used[TEXT_AREA];
+      n_glyphs_before = row->used[TEXT_AREA];
       it_before = *it;
+
       PRODUCE_GLYPHS (it);
 
       nglyphs = row->used[TEXT_AREA] - n_glyphs_before;
       i = 0;
-      x = x_before;
+      x = it_before.current_x;
       while (i < nglyphs)
 	{
 	  struct glyph *glyph = row->glyphs[TEXT_AREA] + n_glyphs_before + i;