aboutsummaryrefslogtreecommitdiffstats
path: root/src/mactoolbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mactoolbox.c')
-rw-r--r--src/mactoolbox.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mactoolbox.c b/src/mactoolbox.c
index 45a86135422..f470c517554 100644
--- a/src/mactoolbox.c
+++ b/src/mactoolbox.c
@@ -575,7 +575,7 @@ mac_handle_text_input_event (next_handler, event, data)
575 int hpos, vpos, x, y; 575 int hpos, vpos, x, y;
576 struct glyph_row *row; 576 struct glyph_row *row;
577 struct glyph *glyph; 577 struct glyph *glyph;
578 XFontStruct *font; 578 struct face *face;
579 579
580 f = mac_focus_frame (&one_mac_display_info); 580 f = mac_focus_frame (&one_mac_display_info);
581 w = XWINDOW (f->selected_window); 581 w = XWINDOW (f->selected_window);
@@ -600,9 +600,10 @@ mac_handle_text_input_event (next_handler, event, data)
600 + row->visible_height 600 + row->visible_height
601 + f->top_pos + FRAME_OUTER_TO_INNER_DIFF_Y (f)); 601 + f->top_pos + FRAME_OUTER_TO_INNER_DIFF_Y (f));
602 602
603 font = FACE_FROM_ID (f, glyph->face_id)->font; 603 face = FACE_FROM_ID (f, glyph->face_id);
604 if (font) 604 if (face && face->font)
605 { 605 {
606 XFontStruct *font = face->font;
606 Fixed point_size = Long2Fix (font->mac_fontsize); 607 Fixed point_size = Long2Fix (font->mac_fontsize);
607 short height = row->visible_height; 608 short height = row->visible_height;
608 short ascent = row->ascent; 609 short ascent = row->ascent;