# HG changeset patch # User Gerd Moellmann # Date 953655142 0 # Node ID 2f636fd2f7147f6574ffeb07fb0ce5a86c9e63d5 # Parent ad471f641f39fc84494d20d588fb81c3b1cf5d2c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. (lface_fully_specified_p): Don't check contents of LFACE_FONT_INDEX because that attribute is optional. (realize_x_face): Remove now unwarranted xassert. diff -r ad471f641f39 -r 2f636fd2f714 src/xfaces.c --- a/src/xfaces.c Tue Mar 21 15:35:06 2000 +0000 +++ b/src/xfaces.c Tue Mar 21 16:12:22 2000 +0000 @@ -2711,8 +2711,8 @@ || SYMBOLP (attrs[LFACE_STIPPLE_INDEX]) || !NILP (Fbitmap_spec_p (attrs[LFACE_STIPPLE_INDEX]))); xassert (UNSPECIFIEDP (attrs[LFACE_FONT_INDEX]) - || NILP (attr[LFACE_FONT_INDEX])); - || STRINGP (attr[LFACE_FONT_INDEX])); + || NILP (attrs[LFACE_FONT_INDEX]) + || STRINGP (attrs[LFACE_FONT_INDEX])); #endif } @@ -2838,7 +2838,7 @@ int i; for (i = 1; i < LFACE_VECTOR_SIZE; ++i) - if (UNSPECIFIEDP (attrs[i])) + if (UNSPECIFIEDP (attrs[i]) && i != LFACE_FONT_INDEX) break; return i == LFACE_VECTOR_SIZE; @@ -5935,7 +5935,6 @@ if (!NILP (stipple)) face->stipple = load_pixmap (f, stipple, &face->pixmap_w, &face->pixmap_h); - xassert (face->fontset < 0); xassert (FACE_SUITABLE_FOR_CHAR_P (face, c)); return face; #endif /* HAVE_WINDOW_SYSTEM */