diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-05-21 08:49:07 +0900 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-05-21 08:49:07 +0900 |
commit | 5950160584b944c4cf9bb99c1804bf3b11fccc29 (patch) | |
tree | 1b50b4ef4a5b66d9785da4242f21ab530240efa4 | |
parent | fb3b78f7b0a1391a5c20c8f795a3c514c7545d64 (diff) | |
download | emacs-5950160584b944c4cf9bb99c1804bf3b11fccc29.tar.gz |
* src/ftcrfont.c (ftcrfont_open): Skip zero glyph index.
-rw-r--r-- | src/ftcrfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |