Commit 8afbb937 authored by Chong Yidong's avatar Chong Yidong
Browse files

(x_draw_glyph_string): Stop drawing the background of the next glyph

string once past the overhang width.
parent 06e23d40
......@@ -2653,7 +2653,8 @@ x_draw_glyph_string (s)
int width;
struct glyph_string *next;
for (width = 0, next = s->next; next;
for (width = 0, next = s->next;
next && width < s->right_overhang;
width += next->width, next = next->next)
if (next->first_glyph->type != IMAGE_GLYPH)
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