fontset.c (fontset_find_font): Fix getting the frame pointer.
authorKenichi Handa <handa@m17n.org>
Tue, 5 Jan 2010 11:49:19 +0000 (20:49 +0900)
committerKenichi Handa <handa@m17n.org>
Tue, 5 Jan 2010 11:49:19 +0000 (20:49 +0900)
src/ChangeLog
src/fontset.c

index 6818ec3..147ac60 100644 (file)
@@ -1,3 +1,7 @@
+2010-01-05  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (fontset_find_font): Fix getting the frame pointer.
+
 2010-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
index 30620e5..b62c779 100644 (file)
@@ -533,8 +533,8 @@ fontset_find_font (fontset, c, face, id, fallback)
 {
   Lisp_Object vec, font_group;
   int i, charset_matched = 0, found_index;
-  FRAME_PTR f = (FRAMEP (FONTSET_FRAME (fontset)))
-    ? XFRAME (selected_frame) : XFRAME (FONTSET_FRAME (fontset));
+  FRAME_PTR f = (FRAMEP (FONTSET_FRAME (fontset))
+                ? XFRAME (FONTSET_FRAME (fontset)) : XFRAME (selected_frame));
   Lisp_Object rfont_def;
 
   font_group = fontset_get_font_group (fontset, fallback ? -1 : c);