From ccedd25934d7e68a2dc7d1c75b2ed57ed56b03cd Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Wed, 25 Jun 2008 21:46:49 +0000 Subject: [PATCH] (get_glyph_face_and_encoding): Encode invalid glyphs as 0. --- src/ChangeLog | 4 ++++ src/xdisp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6916e152d33..c2664909f8a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-06-25 Jason Rumney + + * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0. + 2008-06-25 Stefan Monnier * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile. diff --git a/src/xdisp.c b/src/xdisp.c index ab8a9315e85..ad2de16c7b5 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -19349,7 +19349,7 @@ get_glyph_face_and_encoding (f, glyph, char2b, two_byte_p) if (code != FONT_INVALID_CODE) STORE_XCHAR2B (char2b, (code >> 8), (code & 0xFF)); else - STORE_XCHAR2B (char2b, 0, code); + STORE_XCHAR2B (char2b, 0, 0); } /* Make sure X resources of the face are allocated. */ -- 2.39.2