# HG changeset patch # User Kenichi Handa # Date 1197978481 0 # Node ID 2de541db2c82f9bee6d69183be4c4a2a22fc9952 # Parent 4f21471103e60c5caea138564e659536c3ca9b35 (fontset_find_font): Fix previous change. diff -r 4f21471103e6 -r 2de541db2c82 src/fontset.c --- 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,