diff options
author | Kenichi Handa <handa@m17n.org> | 2011-11-11 16:08:10 +0900 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2011-11-11 16:08:10 +0900 |
commit | 9ac0394b8d1e54bf1b49291c85770af36a94531e (patch) | |
tree | 8487646fe42e5f5ab02607f8216922c02d233a5c /src | |
parent | 0d92c7bfab134043c37c5712b56329bf644fda37 (diff) | |
download | emacs-9ac0394b8d1e54bf1b49291c85770af36a94531e.tar.gz |
xdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash (bug#9496).
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4058054ec02..b09dae946f4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Johan Bockgård <bojohan@gnu.org> + + * xdisp.c (fill_composite_glyph_string): Always set s->face, to + avoid a crash (bug#9496). + 2011-11-07 Kenichi Handa <handa@m17n.org> * coding.c (coding_set_destination): Check coding->src_pos only diff --git a/src/xdisp.c b/src/xdisp.c index 197fb748598..9bb2396c4a3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -22121,6 +22121,12 @@ fill_composite_glyph_string (struct glyph_string *s, struct face *base_face, } s->cmp_to = i; + if (s->face == NULL) + { + s->face = base_face->ascii_face; + s->font = s->face->font; + } + /* All glyph strings for the same composition has the same width, i.e. the width set for the first component of the composition. */ s->width = s->first_glyph->pixel_width; |