1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

(x_set_menu_resources_from_menu_face): Make sure

basic faces are realized before trying to use face `menu'.
This commit is contained in:
Gerd Moellmann 1999-12-07 20:06:40 +00:00
parent 2ccd4374be
commit 15daa94436

View File

@ -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