aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 1652b9db117..8e2884f83b8 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1750,7 +1750,7 @@ be shared by the new frame.")
1750 /* We need to do this after creating the X window, so that the 1750 /* We need to do this after creating the X window, so that the
1751 icon-creation functions can say whose icon they're describing. */ 1751 icon-creation functions can say whose icon they're describing. */
1752 x_default_parameter (f, parms, Qicon_type, Qnil, 1752 x_default_parameter (f, parms, Qicon_type, Qnil,
1753 "iconType", "IconType", symbol); 1753 "bitmapIcon", "BitmapIcon", symbol);
1754 1754
1755 x_default_parameter (f, parms, Qauto_raise, Qnil, 1755 x_default_parameter (f, parms, Qauto_raise, Qnil,
1756 "autoRaise", "AutoRaiseLower", boolean); 1756 "autoRaise", "AutoRaiseLower", boolean);
@@ -2184,11 +2184,15 @@ fonts), even if they match PATTERN and FACE.")
2184 FRAME_PTR f = NILP (frame) ? selected_frame : XFRAME (frame); 2184 FRAME_PTR f = NILP (frame) ? selected_frame : XFRAME (frame);
2185 int face_id = face_name_id_number (f, face); 2185 int face_id = face_name_id_number (f, face);
2186 2186
2187 if (face_id < 0 || face_id > FRAME_N_FACES (f)) 2187 if (face_id < 0 || face_id >= FRAME_N_FACES (f)
2188 face_id = 0; 2188 || FRAME_FACES (f) [face_id] == 0)
2189 size_ref = FRAME_FACES (f) [face_id]->font;
2190 if (size_ref == (XFontStruct *) (~0) || size_ref == NULL)
2191 size_ref = f->display.x->font; 2189 size_ref = f->display.x->font;
2190 else
2191 {
2192 size_ref = FRAME_FACES (f) [face_id]->font;
2193 if (size_ref == (XFontStruct *) (~0))
2194 size_ref = f->display.x->font;
2195 }
2192 } 2196 }
2193 2197
2194 BLOCK_INPUT; 2198 BLOCK_INPUT;