Commit 0992335d authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

* src/fontset.c (check_fontset_name): A better fix for bug#49782.

parent 44fe0043
Pipeline #11663 failed with stages
in 13 seconds
......@@ -1356,15 +1356,16 @@ check_fontset_name (Lisp_Object name, Lisp_Object *frame)
int id;
struct frame *f = decode_live_frame (*frame);
if (!FRAME_WINDOW_P (f) && !FRAME_INITIAL_P (f))
error ("Can't use fontsets in non-GUI frames");
XSETFRAME (*frame, f);
if (EQ (name, Qt))
return Vdefault_fontset;
if (NILP (name))
id = FRAME_FONTSET (f);
{
if (!FRAME_WINDOW_P (f))
error ("Can't use fontsets in non-GUI frames");
id = FRAME_FONTSET (f);
}
else
{
CHECK_STRING (name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment