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:
parent
d660b68fad
commit
be9442ad03
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user