diff options
| author | Kenichi Handa | 2010-01-31 15:46:53 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-01-31 15:46:53 +0900 |
| commit | b57d9029b1e2cb5e74542046c79a6dde5c0620ad (patch) | |
| tree | 28380ae3cb26236b42dde8be76ea3e20738ba9f4 /src | |
| parent | 8fab23622f08c0ecc404b1c12ef9834eda4a7bb3 (diff) | |
| download | emacs-b57d9029b1e2cb5e74542046c79a6dde5c0620ad.tar.gz emacs-b57d9029b1e2cb5e74542046c79a6dde5c0620ad.zip | |
font.c (font_parse_xlfd): If FONT is a font-entity and pixel size in NAME is invalid, return -1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/font.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f27aed26bef..a614d670fba 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-31 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * font.c (font_parse_xlfd): If FONT is a font-entity and pixel | ||
| 4 | size in NAME is invalid, return -1. | ||
| 5 | |||
| 1 | 2010-01-31 David De La Harpe Golden <david@harpegolden.net> | 6 | 2010-01-31 David De La Harpe Golden <david@harpegolden.net> |
| 2 | 7 | ||
| 3 | * fileio.c (Frename_file): Correctly rename symlinks to | 8 | * fileio.c (Frename_file): Correctly rename symlinks to |
diff --git a/src/font.c b/src/font.c index 557f1fbcddc..5f1d59afe22 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1122,6 +1122,8 @@ font_parse_xlfd (name, font) | |||
| 1122 | val = INTERN_FIELD (XLFD_PIXEL_INDEX); | 1122 | val = INTERN_FIELD (XLFD_PIXEL_INDEX); |
| 1123 | if (INTEGERP (val)) | 1123 | if (INTEGERP (val)) |
| 1124 | ASET (font, FONT_SIZE_INDEX, val); | 1124 | ASET (font, FONT_SIZE_INDEX, val); |
| 1125 | else if (FONT_ENTITY_P (font)) | ||
| 1126 | return -1; | ||
| 1125 | else | 1127 | else |
| 1126 | { | 1128 | { |
| 1127 | double point_size = -1; | 1129 | double point_size = -1; |