changeset 91250:2de541db2c82

(fontset_find_font): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Dec 2007 11:48:01 +0000
parents 4f21471103e6
children ff31deb54f4a
files src/fontset.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Tue Dec 18 11:47:33 2007 +0000
+++ b/src/fontset.c	Tue Dec 18 11:48:01 2007 +0000
@@ -662,9 +662,10 @@
   if (EQ (vec, Qt))
     return Qnil;
 
-  if (XINT (AREF (vec, 0)) != charset_ordered_list_tick
-      || XINT (AREF (vec, 1)) != id
-      || NILP (Fequal (AREF (vec, 2), face->lface[LFACE_FAMILY_INDEX])))
+  if (ASIZE (vec) > 4
+      && (XINT (AREF (vec, 0)) != charset_ordered_list_tick
+	  || XINT (AREF (vec, 1)) != id
+	  || NILP (Fequal (AREF (vec, 2), face->lface[LFACE_FAMILY_INDEX]))))
     /* We have just created VEC,
        or the charset priorities were changed,
        or the preferred charset was changed,