aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-08-21 13:53:30 +0000
committerChong Yidong2008-08-21 13:53:30 +0000
commit23888717d0b66d47a151733e81e1787b264cc1fa (patch)
tree32603d7336a5f25cf867da0b474412eaa71f46ae /src
parent0a7c6626762fe3eda54ef8a9463805b77060c1c7 (diff)
downloademacs-23888717d0b66d47a151733e81e1787b264cc1fa.tar.gz
emacs-23888717d0b66d47a151733e81e1787b264cc1fa.zip
(x_update_menu_appearance): Check validity of menu font before using
it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xfaces.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4e2e36c55b5..bb2f7661504 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12008-08-21 Chong Yidong <cyd@stupidchicken.com> 12008-08-21 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4 before using it.
5
3 * puresize.h (BASE_PURESIZE): Increase to 1250000. 6 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4 7
52008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com> 82008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
diff --git a/src/xfaces.c b/src/xfaces.c
index 66dcfc157fb..c9abfc84b8d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3733,6 +3733,10 @@ x_update_menu_appearance (f)
3733 } 3733 }
3734 3734
3735 if (face->font 3735 if (face->font
3736 /* On Solaris 5.8, it's been reported that the `menu' face
3737 can be unspecified here, during startup. Why this
3738 happens remains unknown. -- cyd */
3739 && FONTP (LFACE_FONT (lface))
3736 && (!UNSPECIFIEDP (LFACE_FAMILY (lface)) 3740 && (!UNSPECIFIEDP (LFACE_FAMILY (lface))
3737 || !UNSPECIFIEDP (LFACE_FOUNDRY (lface)) 3741 || !UNSPECIFIEDP (LFACE_FOUNDRY (lface))
3738 || !UNSPECIFIEDP (LFACE_SWIDTH (lface)) 3742 || !UNSPECIFIEDP (LFACE_SWIDTH (lface))