* src/xfaces.c (Finternal_set_lisp_face_attribute): Ensure the face
cache exists on a frame before calling Fmodify_frame_parameters.
cons = XCAR (Vparam_value_alist);
XSETCAR (cons, param);
XSETCDR (cons, value);
+
+ /* Fmodify_frame_parameters may update faces and use the
+ cache. */
+ struct frame *f = XFRAME (frame);
+ if (FRAME_FACE_CACHE (f) == NULL)
+ FRAME_FACE_CACHE (f) = make_face_cache (f);
+
Fmodify_frame_parameters (frame, Vparam_value_alist);
}
}