1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-19 10:22:27 +00:00

(font_clear_cache): Check if the cached vector of entities is nil

or not.
This commit is contained in:
Kenichi Handa 2008-05-14 12:28:17 +00:00
parent d660b68fad
commit be9442ad03
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
2008-05-14 Kenichi Handa <handa@m17n.org>
* font.c (font_prop_validate): Make nil a valid value.
(font_clear_cache): Check if the cached vector of entities is nil
or not.
2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>

View File

@ -2237,7 +2237,7 @@ font_clear_cache (f, cache, driver)
for (tail = XCDR (XCDR (cache)); CONSP (tail); tail = XCDR (tail))
{
elt = XCAR (tail);
if (CONSP (elt) && FONT_SPEC_P (XCAR (elt)))
if (CONSP (elt) && FONT_SPEC_P (XCAR (elt)) && VECTORP (XCDR (elt)))
{
Lisp_Object vec = XCDR (elt);
int i;