1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 16:41:17 -08:00

(set_font_frame_param): Don't try to set the font parameter if it is

still unspecified in the lface.
This commit is contained in:
Chong Yidong 2008-07-06 03:51:06 +00:00
parent fe5d61c40b
commit be22aa9713

View file

@ -3501,11 +3501,14 @@ set_font_frame_param (frame, lface)
Lisp_Object frame, lface;
{
struct frame *f = XFRAME (frame);
Lisp_Object font;
if (FRAME_WINDOW_P (f))
if (FRAME_WINDOW_P (f)
/* Don't do anything if the font is `unspecified'. This can
happen during frame creation. */
&& (font = LFACE_FONT (lface),
! UNSPECIFIEDP (font)))
{
Lisp_Object font = LFACE_FONT (lface);
if (FONT_SPEC_P (font))
{
font = font_load_for_lface (f, XVECTOR (lface)->contents, font);