From: Kenichi Handa Date: Thu, 13 Nov 2003 23:33:48 +0000 (+0000) Subject: (set_lface_from_font_name): Fix for the case that X-Git-Tag: emacs-pretest-23.0.90~8295^2~1728 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=21228b3df0351fbc624d7ef6c168f733164064a0;p=emacs.git (set_lface_from_font_name): Fix for the case that FONTNAME is not fontset name. --- diff --git a/src/xfaces.c b/src/xfaces.c index 067e6fd445e..3a84ab02122 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -3354,7 +3354,7 @@ set_lface_from_font_name (f, lface, fontname, force_p, may_fail_p) LFACE_SLANT (lface) = have_xlfd_p ? xlfd_symbolic_slant (&font) : Qnormal; - if (fontset) + if (fontset > 0) { LFACE_FONT (lface) = build_string (font_info->full_name); LFACE_FONTSET (lface) = fontset_name (fontset);