From: YAMAMOTO Mitsuharu Date: Mon, 20 May 2019 23:49:07 +0000 (+0900) Subject: * src/ftcrfont.c (ftcrfont_open): Skip zero glyph index. X-Git-Tag: emacs-27.0.90~2805^2~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5950160584b944c4cf9bb99c1804bf3b11fccc29;p=emacs.git * src/ftcrfont.c (ftcrfont_open): Skip zero glyph index. --- diff --git a/src/ftcrfont.c b/src/ftcrfont.c index 606db0b949b..2d5a7665578 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c @@ -190,7 +190,7 @@ ftcrfont_open (struct frame *f, Lisp_Object entity, int pixel_size) { if (glyphs != &stack_glyph) cairo_glyph_free (glyphs); - else + else if (stack_glyph.index) { int this_width = ftcrfont_glyph_extents (font, stack_glyph.index, NULL);