diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c index b911ac13030..691f8bc1282 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -2703,6 +2703,7 @@ font_find_for_lface (f, lface, spec, c) | |||
| 2703 | if (NILP (val)) | 2703 | if (NILP (val)) |
| 2704 | return Qnil; | 2704 | return Qnil; |
| 2705 | result = font_has_char (f, val, c); | 2705 | result = font_has_char (f, val, c); |
| 2706 | font_close_object (f, val); | ||
| 2706 | if (result > 0) | 2707 | if (result > 0) |
| 2707 | return val; | 2708 | return val; |
| 2708 | return Qnil; | 2709 | return Qnil; |
| @@ -3566,6 +3567,9 @@ FONT-OBJECT. */) | |||
| 3566 | args_out_of_range_3 (string, from, to); | 3567 | args_out_of_range_3 (string, from, to); |
| 3567 | } | 3568 | } |
| 3568 | 3569 | ||
| 3570 | if (! FONT_OBJECT_P (font_object)) | ||
| 3571 | return to; | ||
| 3572 | |||
| 3569 | CHECK_FONT_GET_OBJECT (font_object, font); | 3573 | CHECK_FONT_GET_OBJECT (font_object, font); |
| 3570 | len = end - start; | 3574 | len = end - start; |
| 3571 | gstring = Ffont_make_gstring (font_object, make_number (len)); | 3575 | gstring = Ffont_make_gstring (font_object, make_number (len)); |