diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/font.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ed2059ebd37..223356eaad2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-05-14 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * font.c (font_prop_validate): Make nil a valid value. | ||
| 4 | |||
| 1 | 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 5 | 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 6 | ||
| 3 | * emacs.c (main_thread): Conditionalize on | 7 | * emacs.c (main_thread): Conditionalize on |
diff --git a/src/font.c b/src/font.c index 07bd9a2af2e..c5cf732bfe9 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -566,6 +566,8 @@ font_prop_validate (idx, prop, val) | |||
| 566 | { | 566 | { |
| 567 | Lisp_Object validated; | 567 | Lisp_Object validated; |
| 568 | 568 | ||
| 569 | if (NILP (val)) | ||
| 570 | return val; | ||
| 569 | if (NILP (prop)) | 571 | if (NILP (prop)) |
| 570 | prop = *font_property_table[idx].key; | 572 | prop = *font_property_table[idx].key; |
| 571 | else | 573 | else |