]> code.delx.au - gnu-emacs/commitdiff
(fontset_find_font): Fix handling of non-cons return
authorChong Yidong <cyd@stupidchicken.com>
Mon, 26 Jan 2009 15:50:43 +0000 (15:50 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 26 Jan 2009 15:50:43 +0000 (15:50 +0000)
value of fontset_get_font_group.
(fontset_font): Revert last change.

src/fontset.c

index 983f4f0d0445bbf60586fcb4ed2008035e473617..cd375683083bdddbef13f668f3b405837d361c72 100644 (file)
@@ -521,7 +521,7 @@ fontset_find_font (fontset, c, face, id, fallback)
 
   font_group = fontset_get_font_group (fontset, fallback ? -1 : c);
   if (! CONSP (font_group))
-    return Qnil;
+    return font_group;
   vec = XCDR (font_group);
   if (ASIZE (vec) == 0)
     return Qnil;
@@ -660,10 +660,6 @@ fontset_font (fontset, c, face, id)
   Lisp_Object rfont_def;
   Lisp_Object base_fontset;
 
-  /* If we know there is no font of C, don't do any work.  */
-  if (EQ (fontset_ref (fontset, c), Qt))
-    return Qnil;
-
   /* Try a font-group of FONTSET. */
   rfont_def = fontset_find_font (fontset, c, face, id, 0);
   if (VECTORP (rfont_def))