* src/fontset.c (check_fontset_name): Fix last change.

This commit is contained in:
Eli Zaretskii 2021-07-30 21:51:59 +03:00
parent 1da5b2c60b
commit d9bc7dbefd

View file

@ -1356,7 +1356,7 @@ check_fontset_name (Lisp_Object name, Lisp_Object *frame)
int id;
struct frame *f = decode_live_frame (*frame);
if (!FRAME_WINDOW_P (f))
if (!FRAME_WINDOW_P (f) && !FRAME_INITIAL_P (f))
error ("Can't use fontsets in non-GUI frames");
XSETFRAME (*frame, f);