aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2012-07-08 18:49:39 +0300
committerEli Zaretskii2012-07-08 18:49:39 +0300
commitc4b3bc8aaf01a9e3fdd14072ae49316ae4fb4f3b (patch)
tree22f73da88cd8c3a207588c3006bdbd6f930c31a7 /src
parent9d6fa7c706f5dbe30d976ac2c5a0e4d49c4a4d62 (diff)
downloademacs-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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c2
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 @@
12012-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
12012-07-07 Andreas Schwab <schwab@linux-m68k.org> 62012-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++;