+2000-09-08 Gerd Moellmann <gerd@gnu.org>
+
+ * xterm.c (x_draw_glyphs): Handle case START and END are out
+ of bounds more carefully.
+
2000-09-08 Dave Love <fx@gnu.org>
* unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
int i, j;
/* Let's rather be paranoid than getting a SEGV. */
- start = max (0, start);
end = min (end, row->used[area]);
+ start = max (0, start);
+ start = min (end, start);
if (real_start)
*real_start = start;
if (real_end)
/* If there are any glyphs with lbearing < 0 or rbearing > width in
the row, redraw some glyphs in front or following the glyph
strings built above. */
- if (!overlaps_p && row->contains_overlapping_glyphs_p)
+ if (head && !overlaps_p && row->contains_overlapping_glyphs_p)
{
int dummy_x = 0;
struct glyph_string *h, *t;
if (area > TEXT_AREA)
x_reached -= window_box_width (w, TEXT_AREA);
}
+
return x_reached;
}