diff options
| author | Kenichi Handa | 2011-11-11 16:08:10 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2011-11-11 16:08:10 +0900 |
| commit | 9ac0394b8d1e54bf1b49291c85770af36a94531e (patch) | |
| tree | 8487646fe42e5f5ab02607f8216922c02d233a5c /src | |
| parent | 0d92c7bfab134043c37c5712b56329bf644fda37 (diff) | |
| download | emacs-9ac0394b8d1e54bf1b49291c85770af36a94531e.tar.gz emacs-9ac0394b8d1e54bf1b49291c85770af36a94531e.zip | |
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 @@ | |||
| 1 | 2011-11-11 Johan Bockgård <bojohan@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (fill_composite_glyph_string): Always set s->face, to | ||
| 4 | avoid a crash (bug#9496). | ||
| 5 | |||
| 1 | 2011-11-07 Kenichi Handa <handa@m17n.org> | 6 | 2011-11-07 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * coding.c (coding_set_destination): Check coding->src_pos only | 8 | * 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, | |||
| 22121 | } | 22121 | } |
| 22122 | s->cmp_to = i; | 22122 | s->cmp_to = i; |
| 22123 | 22123 | ||
| 22124 | if (s->face == NULL) | ||
| 22125 | { | ||
| 22126 | s->face = base_face->ascii_face; | ||
| 22127 | s->font = s->face->font; | ||
| 22128 | } | ||
| 22129 | |||
| 22124 | /* All glyph strings for the same composition has the same width, | 22130 | /* All glyph strings for the same composition has the same width, |
| 22125 | i.e. the width set for the first component of the composition. */ | 22131 | i.e. the width set for the first component of the composition. */ |
| 22126 | s->width = s->first_glyph->pixel_width; | 22132 | s->width = s->first_glyph->pixel_width; |