changeset 96087:b6d5b82f877f

(fontset_from_font): Copy font_spec before changing the elements.
author Kenichi Handa <handa@m17n.org>
date Fri, 20 Jun 2008 06:11:57 +0000
parents 5962deb66a42
children bdeece3f0482
files src/fontset.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Fri Jun 20 02:15:52 2008 +0000
+++ b/src/fontset.c	Fri Jun 20 06:11:57 2008 +0000
@@ -1633,6 +1633,7 @@
   Vfontset_alias_alist = Fcons (Fcons (name, alias), Vfontset_alias_alist);
   auto_fontset_alist = Fcons (Fcons (font_spec, fontset), auto_fontset_alist);
   FONTSET_ASCII (fontset) = font_name;
+  font_spec = Fcopy_font_spec (font_spec);
   ASET (font_spec, FONT_FOUNDRY_INDEX, Qnil);
   ASET (font_spec, FONT_ADSTYLE_INDEX, Qnil);
   for (i = FONT_WEIGHT_INDEX; i < FONT_EXTRA_INDEX; i++)