(font_find_for_lface): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Fri, 9 Jun 2006 06:28:33 +0000 (06:28 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 9 Jun 2006 06:28:33 +0000 (06:28 +0000)
src/font.c

index 9c8f37c..6f6e7f5 100644 (file)
@@ -1728,7 +1728,7 @@ font_find_for_lface (f, lface, spec)
   for (i = FONT_FOUNDRY_INDEX; i <= FONT_SIZE_INDEX; i++)
     try_unspecified[i] = NILP (AREF (scratch_font_spec, i));
 
-  if (STRINGP (attrs[LFACE_FONT_INDEX]))
+  if (NILP (spec) && STRINGP (attrs[LFACE_FONT_INDEX]))
     font_merge_old_spec (attrs[LFACE_FONT_INDEX], Qnil, Qnil,
                              scratch_font_spec);
   if (NILP (AREF (scratch_font_spec, FONT_FAMILY_INDEX))