Commit f3d29551 authored by Chong Yidong's avatar Chong Yidong
Browse files

(fontset_find_font): Check frame validity.

parent edc3ecf3
......@@ -516,9 +516,9 @@ fontset_find_font (fontset, c, face, id, fallback)
int id, fallback;
{
Lisp_Object elt, vec, font_group;
int i;
FRAME_PTR f = XFRAME (FONTSET_FRAME (fontset));
int charset_matched = -1;
int i, charset_matched = -1;
FRAME_PTR f = (FRAMEP (FONTSET_FRAME (fontset)))
? XFRAME (selected_frame) : XFRAME (FONTSET_FRAME (fontset));
font_group = fontset_get_font_group (fontset, fallback ? -1 : c);
if (! CONSP (font_group))
......
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