(get_glyph_face_and_encoding): Encode invalid glyphs as 0.
authorJason Rumney <jasonr@gnu.org>
Wed, 25 Jun 2008 21:46:49 +0000 (21:46 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 25 Jun 2008 21:46:49 +0000 (21:46 +0000)
src/ChangeLog
src/xdisp.c

index 6916e15..c266490 100644 (file)
@@ -1,3 +1,7 @@
+2008-06-25  Jason Rumney  <jasonr@gnu.org>
+
+        * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
+
 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
index ab8a931..ad2de16 100644 (file)
@@ -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.  */