diff options
| author | Kenichi Handa | 2006-10-27 07:37:13 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-10-27 07:37:13 +0000 |
| commit | f73891b012ed8fc4c3769ea7d8814bc9cf260b38 (patch) | |
| tree | 965c25df035155ae4bc02d5db54db0bd0c31f391 /src | |
| parent | af7e13bde417f7c4bb34ab831670d624cd0e5c44 (diff) | |
| download | emacs-f73891b012ed8fc4c3769ea7d8814bc9cf260b38.tar.gz emacs-f73891b012ed8fc4c3769ea7d8814bc9cf260b38.zip | |
(font_unparse_fcname): Pay attention to the case that
some of font property is a null string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c index 505a91de163..b1bdd10d51a 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1324,7 +1324,7 @@ font_unparse_fcname (font, pixel_size, name, nbytes) | |||
| 1324 | p += sprintf (p, ":foundry=%s", | 1324 | p += sprintf (p, ":foundry=%s", |
| 1325 | SDATA (SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX)))); | 1325 | SDATA (SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX)))); |
| 1326 | for (i = 0; i < 3; i++) | 1326 | for (i = 0; i < 3; i++) |
| 1327 | if (! NILP (styles [i])) | 1327 | if (SYMBOLP (styles[i]) && ! NILP (styles [i])) |
| 1328 | p += sprintf (p, ":%s=%s", style_names[i], | 1328 | p += sprintf (p, ":%s=%s", style_names[i], |
| 1329 | SDATA (SYMBOL_NAME (styles [i]))); | 1329 | SDATA (SYMBOL_NAME (styles [i]))); |
| 1330 | if (dpi >= 0) | 1330 | if (dpi >= 0) |