changeset 90640:bbc1344cea0e

(font_unparse_fcname): Pay attention to the case that some of font property is a null string.
author Kenichi Handa <handa@m17n.org>
date Fri, 27 Oct 2006 07:37:13 +0000
parents 5a93997128bf
children 54f7efcb326f
files src/font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Thu Oct 26 12:00:59 2006 +0000
+++ b/src/font.c	Fri Oct 27 07:37:13 2006 +0000
@@ -1324,7 +1324,7 @@
     p += sprintf (p, ":foundry=%s",
 		  SDATA (SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX))));
   for (i = 0; i < 3; i++)
-    if (! NILP (styles [i]))
+    if (SYMBOLP (styles[i]) && ! NILP (styles [i]))
       p += sprintf (p, ":%s=%s", style_names[i],
 		    SDATA (SYMBOL_NAME (styles [i])));
   if (dpi >= 0)