]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #11813 with invalid font for buffer name on the modeline.
authorEli Zaretskii <eliz@gnu.org>
Sun, 8 Jul 2012 15:49:39 +0000 (18:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 8 Jul 2012 15:49:39 +0000 (18:49 +0300)
 src/xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
 has no font, use the frame's font.

src/ChangeLog
src/xdisp.c

index 2ac0f54612b52260610056dd258780d4d05cb985..2fc91007719c8f118d47b4cc0ad0335662e3d90f 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (fill_glyphless_glyph_string): If the face of the glyph
+       has no font, use the frame's font.  (Bug#11813)
+
 2012-07-07  Andreas Schwab  <schwab@linux-m68k.org>
 
        * xdisp.c (display_line): Avoid warning about implicit declaration
index 2b2765e7f9379a7b34bd58d6b895cd7198d497fc..3a485f6a5a9514a8e7168457fa907808b5920ac7 100644 (file)
@@ -22736,7 +22736,7 @@ fill_glyphless_glyph_string (struct glyph_string *s, int face_id,
   last = s->row->glyphs[s->area] + end;
   voffset = glyph->voffset;
   s->face = FACE_FROM_ID (s->f, face_id);
-  s->font = s->face->font;
+  s->font = s->face->font ? s->face->font : FRAME_FONT (s->f);
   s->nchars = 1;
   s->width = glyph->pixel_width;
   glyph++;