diff options
| author | Jason Rumney | 2008-03-01 20:21:03 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-03-01 20:21:03 +0000 |
| commit | f3b9e4791f7da7911bd8838c4247b668356c4312 (patch) | |
| tree | 3e0f6601d48ee55fbd20ca31cf89150d84878fe0 /src | |
| parent | c721821652adbd0a2c88a831ab7ffbab862de406 (diff) | |
| download | emacs-f3b9e4791f7da7911bd8838c4247b668356c4312.tar.gz emacs-f3b9e4791f7da7911bd8838c4247b668356c4312.zip | |
(font_unparse_fcname): Increase len when style is a symbol.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/font.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5bc47181e4e..5d059247940 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-03-01 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * font.c (font_unparse_fcname): Increase len when style is a symbol. | ||
| 4 | |||
| 1 | 2008-03-01 Jan Dj$(Q)Z(Brv <jan.h.d@swipnet.se> | 5 | 2008-03-01 Jan Dj$(Q)Z(Brv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call | 7 | * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call |
diff --git a/src/font.c b/src/font.c index ce040fe7fd7..9856c935ef6 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1462,9 +1462,10 @@ font_unparse_fcname (font, pixel_size, name, nbytes) | |||
| 1462 | if (INTEGERP (val)) | 1462 | if (INTEGERP (val)) |
| 1463 | { | 1463 | { |
| 1464 | val = prop_numeric_to_name (i, XINT (val)); | 1464 | val = prop_numeric_to_name (i, XINT (val)); |
| 1465 | len += (strlen (style_names[i - FONT_WEIGHT_INDEX]) | ||
| 1466 | + 2 + SBYTES (SYMBOL_NAME (val))); /* :xxx=NAME */ | ||
| 1467 | } | 1465 | } |
| 1466 | if (SYMBOLP (val) && ! NILP (val)) | ||
| 1467 | len += (strlen (style_names[i - FONT_WEIGHT_INDEX]) | ||
| 1468 | + 2 + SBYTES (SYMBOL_NAME (val))); /* :xxx=NAME */ | ||
| 1468 | styles[i - FONT_WEIGHT_INDEX] = val; | 1469 | styles[i - FONT_WEIGHT_INDEX] = val; |
| 1469 | } | 1470 | } |
| 1470 | 1471 | ||