aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-06-02 01:49:47 +0000
committerKenichi Handa2008-06-02 01:49:47 +0000
commit4fc1984a7e02d0bcfcf252ae323b0741ef293f26 (patch)
tree4c56849d85be8cad0617a47d1e71d6fdd05c1406 /src
parentfd2ae9b27ebb0dc7e3170a187051b84f7ef5abce (diff)
downloademacs-4fc1984a7e02d0bcfcf252ae323b0741ef293f26.tar.gz
emacs-4fc1984a7e02d0bcfcf252ae323b0741ef293f26.zip
(x_supports_face_attributes_p): Check face->font before
comparing the properties.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfaces.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c6aab2c264e..dc54ddaddd9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-06-02 Kenichi Handa <handa@m17n.org>
2
3 * xfaces.c (x_supports_face_attributes_p): Check face->font before
4 comparing the properties.
5
12008-06-01 Jason Rumney <jasonr@gnu.org> 62008-06-01 Jason Rumney <jasonr@gnu.org>
2 7
3 * w32font.c (w32_enumfont_pattern_entity): Use requested registry. 8 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
diff --git a/src/xfaces.c b/src/xfaces.c
index 074b71b13c1..2b85cfb6605 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -5036,8 +5036,10 @@ x_supports_face_attributes_p (f, attrs, def_face)
5036 if (! face) 5036 if (! face)
5037 error ("Cannot make face"); 5037 error ("Cannot make face");
5038 5038
5039 /* If the font is the same, then not supported. */ 5039 /* If the font is the same, or no font is found, then not
5040 if (face->font == def_face->font) 5040 supported. */
5041 if (face->font == def_face->font
5042 || ! face->font)
5041 return 0; 5043 return 0;
5042 for (i = FONT_TYPE_INDEX; i <= FONT_SIZE_INDEX; i++) 5044 for (i = FONT_TYPE_INDEX; i <= FONT_SIZE_INDEX; i++)
5043 if (! EQ (face->font->props[i], def_face->font->props[i])) 5045 if (! EQ (face->font->props[i], def_face->font->props[i]))