]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_font): Always store a font to the font parameter,
authorJason Rumney <jasonr@gnu.org>
Wed, 14 Jan 2009 12:08:49 +0000 (12:08 +0000)
committerJason Rumney <jasonr@gnu.org>
Wed, 14 Jan 2009 12:08:49 +0000 (12:08 +0000)
never a fontset. (Bug#1562)

src/frame.c

index 7db5a1e1fcb9be3be9b18d735274a75e463b1ca1..7074e14077e5f74ef970cbeb8e7b6b988d5940a9 100644 (file)
@@ -3391,7 +3391,7 @@ x_set_font (f, arg, oldval)
          font_object = font_open_by_name (f, SDATA (ascii_font));
          if (NILP (font_object))
            error ("Font `%s' is not defined", SDATA (arg));
-         arg = fontset_name (fontset);
+         arg = AREF (font_object, FONT_NAME_INDEX);
        }
       else
        error ("The default fontset can't be used for a frame font");