]> git.eshelyaron.com Git - emacs.git/commitdiff
xdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash (bug...
authorKenichi Handa <handa@m17n.org>
Fri, 11 Nov 2011 07:08:10 +0000 (16:08 +0900)
committerKenichi Handa <handa@m17n.org>
Fri, 11 Nov 2011 07:08:10 +0000 (16:08 +0900)
src/ChangeLog
src/xdisp.c

index 4058054ec02ee1df1feb6ed75544006885b5a8d8..b09dae946f4fe134901c0ef1928a44bc7d698708 100644 (file)
@@ -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
index 197fb748598a915365eb2a8bbe1e979fc3ed45df..9bb2396c4a38338f2b959a123033912f52a411c5 100644 (file)
@@ -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;