Mercurial > emacs
changeset 92381:edc3ba5b9670
(font_unparse_fcname): Increase len when style is a symbol.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 01 Mar 2008 20:20:43 +0000 |
parents | 8ee8aa679c74 |
children | df1420681df6 |
files | src/font.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.c Sat Mar 01 20:19:23 2008 +0000 +++ b/src/font.c Sat Mar 01 20:20:43 2008 +0000 @@ -1462,9 +1462,10 @@ if (INTEGERP (val)) { val = prop_numeric_to_name (i, XINT (val)); - len += (strlen (style_names[i - FONT_WEIGHT_INDEX]) - + 2 + SBYTES (SYMBOL_NAME (val))); /* :xxx=NAME */ } + if (SYMBOLP (val) && ! NILP (val)) + len += (strlen (style_names[i - FONT_WEIGHT_INDEX]) + + 2 + SBYTES (SYMBOL_NAME (val))); /* :xxx=NAME */ styles[i - FONT_WEIGHT_INDEX] = val; }