# HG changeset patch # User Kim F. Storm # Date 1083186040 0 # Node ID d6780b4bbfa5975be031d93e7e4c386b0ac9ae0d # Parent 7f21f42b5c55d5480ea6803f54578481be3cd996 (null_glyph_slice): New var. (append_glyph, append_composite_glyph, append_stretch_glyph): Use it to initialize glyph slice. diff -r 7f21f42b5c55 -r d6780b4bbfa5 src/xdisp.c --- a/src/xdisp.c Wed Apr 28 21:00:06 2004 +0000 +++ b/src/xdisp.c Wed Apr 28 21:00:40 2004 +0000 @@ -799,6 +799,9 @@ Lisp_Object previous_help_echo_string; +/* Null glyph slice */ + +static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 }; /* Function prototypes. */ @@ -18092,6 +18095,7 @@ glyph->glyph_not_available_p = it->glyph_not_available_p; glyph->face_id = it->face_id; glyph->u.ch = it->char_to_display; + glyph->slice = null_glyph_slice; glyph->font_type = FONT_TYPE_UNKNOWN; ++it->glyph_row->used[area]; } @@ -18128,6 +18132,7 @@ glyph->glyph_not_available_p = 0; glyph->face_id = it->face_id; glyph->u.cmp_id = it->cmp_id; + glyph->slice = null_glyph_slice; glyph->font_type = FONT_TYPE_UNKNOWN; ++it->glyph_row->used[area]; } @@ -18339,6 +18344,7 @@ glyph->face_id = it->face_id; glyph->u.stretch.ascent = ascent; glyph->u.stretch.height = height; + glyph->slice = null_glyph_slice; glyph->font_type = FONT_TYPE_UNKNOWN; ++it->glyph_row->used[area]; }