From 15daa94436ab4a4aa15b0f867d729d820486ed76 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 7 Dec 1999 20:06:40 +0000 Subject: [PATCH] (x_set_menu_resources_from_menu_face): Make sure basic faces are realized before trying to use face `menu'. --- src/xfaces.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xfaces.c b/src/xfaces.c index 5fb16e5509d..4e8e2514c1d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -3988,6 +3988,12 @@ x_set_menu_resources_from_menu_face (f, widget) struct frame *f; Widget widget; { + /* Realized faces may have been removed on frame F, e.g. because of + face attribute changes. Recompute them, if necessary, since we + will need the `menu' face. */ + if (f->face_cache->used == 0) + recompute_basic_faces (f); + #ifdef USE_LUCID xl_set_menu_resources_from_menu_face (f, widget); #endif