changeset 91241:6133244f82b7

(fontset_find_font): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Dec 2007 02:29:25 +0000
parents b2febf77e71c
children 5ea93ee99947
files src/fontset.c
diffstat 1 files changed, 8 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Tue Dec 18 02:26:27 2007 +0000
+++ b/src/fontset.c	Tue Dec 18 02:29:25 2007 +0000
@@ -614,23 +614,17 @@
 	      if (! NILP (script))
 		{
 		  Lisp_Object font_spec = Ffont_spec (0, NULL);
-	      
+		  Lisp_Object args[2], tmp;	      
+
 		  ASET (font_spec, FONT_REGISTRY_INDEX, Qiso10646_1);
 		  ASET (font_spec, FONT_EXTRA_INDEX,
 			Fcons (Fcons (QCscript, script), Qnil));
-		  if (NILP (elt))
-		    elt = Fvector (1, &font_spec);
-		  else
-		    {
-		      Lisp_Object args[2], tmp;
-
-		      args[0] = elt;
-		      tmp = Fmake_vector (make_number (3), Qnil);
-		      ASET (tmp, 0, font_spec);
-		      ASET (tmp, 1, CHARSET_SYMBOL_ID (Qunicode_bmp));
-		      args[1] = Fvector (1, &tmp);
-		      elt = Fvconcat (2, args);
-		    }
+		  args[0] = elt;
+		  tmp = Fmake_vector (make_number (3), Qnil);
+		  ASET (tmp, 0, font_spec);
+		  ASET (tmp, 1, CHARSET_SYMBOL_ID (Qunicode_bmp));
+		  args[1] = Fvector (1, &tmp);
+		  elt = Fvconcat (2, args);
 		}
 	    }
 	}