changeset 2998:885e08ef0577

(Fset_face_attribute_internal): Don't call unload_font for the frame's own font.
author Richard M. Stallman <rms@gnu.org>
date Mon, 24 May 1993 00:03:08 +0000
parents 890e8e99a932
children 33c820044087
files src/xfaces.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Mon May 24 00:00:19 1993 +0000
+++ b/src/xfaces.c	Mon May 24 00:03:08 1993 +0000
@@ -863,7 +863,8 @@
   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")))