Commit ebc64af3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fset_face_attribute_internal): Don't call unload_font

for the frame's own font.
parent 6515fde4
......@@ -863,7 +863,8 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
if (EQ (attr_name, intern ("font")))
XFontStruct *font = load_font (f, attr_value);
unload_font (f, face->font);
if (face->font != f->display.x->font)
unload_font (f, face->font);
face->font = font;
else if (EQ (attr_name, intern ("foreground")))
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