diff options
| author | Eli Zaretskii | 2012-07-08 18:49:39 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-07-08 18:49:39 +0300 |
| commit | c4b3bc8aaf01a9e3fdd14072ae49316ae4fb4f3b (patch) | |
| tree | 22f73da88cd8c3a207588c3006bdbd6f930c31a7 | |
| parent | 9d6fa7c706f5dbe30d976ac2c5a0e4d49c4a4d62 (diff) | |
| download | emacs-c4b3bc8aaf01a9e3fdd14072ae49316ae4fb4f3b.tar.gz emacs-c4b3bc8aaf01a9e3fdd14072ae49316ae4fb4f3b.zip | |
Fix bug #11813 with invalid font for buffer name on the modeline.
src/xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
has no font, use the frame's font.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2ac0f54612b..2fc91007719 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (fill_glyphless_glyph_string): If the face of the glyph | ||
| 4 | has no font, use the frame's font. (Bug#11813) | ||
| 5 | |||
| 1 | 2012-07-07 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-07-07 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (display_line): Avoid warning about implicit declaration | 8 | * xdisp.c (display_line): Avoid warning about implicit declaration |
diff --git a/src/xdisp.c b/src/xdisp.c index 2b2765e7f93..3a485f6a5a9 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -22736,7 +22736,7 @@ fill_glyphless_glyph_string (struct glyph_string *s, int face_id, | |||
| 22736 | last = s->row->glyphs[s->area] + end; | 22736 | last = s->row->glyphs[s->area] + end; |
| 22737 | voffset = glyph->voffset; | 22737 | voffset = glyph->voffset; |
| 22738 | s->face = FACE_FROM_ID (s->f, face_id); | 22738 | s->face = FACE_FROM_ID (s->f, face_id); |
| 22739 | s->font = s->face->font; | 22739 | s->font = s->face->font ? s->face->font : FRAME_FONT (s->f); |
| 22740 | s->nchars = 1; | 22740 | s->nchars = 1; |
| 22741 | s->width = glyph->pixel_width; | 22741 | s->width = glyph->pixel_width; |
| 22742 | glyph++; | 22742 | glyph++; |