aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-01-28 23:59:56 +0000
committerKenichi Handa2008-01-28 23:59:56 +0000
commitd9e11902b2c62a52e7b293c1a2afe488e547b7e0 (patch)
treeced0b1e1975644614e782e6751dcad80c7a9ec3c /src
parent0b8b3c1cdf43ba1a6b93bc192e6179d95b0e9404 (diff)
downloademacs-d9e11902b2c62a52e7b293c1a2afe488e547b7e0.tar.gz
emacs-d9e11902b2c62a52e7b293c1a2afe488e547b7e0.zip
(font_find_for_lface): Fix previous change. Be sure to
close a font-object. (Ffont_shape_text): If FONT_OBJECT is not a font-object, just return TO.
Diffstat (limited to 'src')
-rw-r--r--src/font.c4
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));