aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2019-05-21 08:49:07 +0900
committerYAMAMOTO Mitsuharu2019-05-21 08:49:07 +0900
commit5950160584b944c4cf9bb99c1804bf3b11fccc29 (patch)
tree1b50b4ef4a5b66d9785da4242f21ab530240efa4 /src
parentfb3b78f7b0a1391a5c20c8f795a3c514c7545d64 (diff)
downloademacs-5950160584b944c4cf9bb99c1804bf3b11fccc29.tar.gz
emacs-5950160584b944c4cf9bb99c1804bf3b11fccc29.zip
* src/ftcrfont.c (ftcrfont_open): Skip zero glyph index.
Diffstat (limited to 'src')
-rw-r--r--src/ftcrfont.c2
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)
190 { 190 {
191 if (glyphs != &stack_glyph) 191 if (glyphs != &stack_glyph)
192 cairo_glyph_free (glyphs); 192 cairo_glyph_free (glyphs);
193 else 193 else if (stack_glyph.index)
194 { 194 {
195 int this_width = 195 int this_width =
196 ftcrfont_glyph_extents (font, stack_glyph.index, NULL); 196 ftcrfont_glyph_extents (font, stack_glyph.index, NULL);