aboutsummaryrefslogtreecommitdiffstats
path: root/src/mactoolbox.c
diff options
context:
space:
mode:
authorMiles Bader2008-07-17 23:18:58 +0000
committerMiles Bader2008-07-17 23:18:58 +0000
commit08b3caa982199bd7939d9d6877203ada5d0083b5 (patch)
treeeef15d8191132d316d1e1125cb7e2878a4782ca3 /src/mactoolbox.c
parent8d59c5ed4480037bcc953bd28a9165990fdd002e (diff)
parent69955d31c4b59034d3429b14ca9f33ea102dde73 (diff)
downloademacs-08b3caa982199bd7939d9d6877203ada5d0083b5.tar.gz
emacs-08b3caa982199bd7939d9d6877203ada5d0083b5.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1339
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 a73578d5205..c6e5f8bcf8a 100644
--- a/src/mactoolbox.c
+++ b/src/mactoolbox.c
@@ -573,7 +573,7 @@ mac_handle_text_input_event (next_handler, event, data)
573 int hpos, vpos, x, y; 573 int hpos, vpos, x, y;
574 struct glyph_row *row; 574 struct glyph_row *row;
575 struct glyph *glyph; 575 struct glyph *glyph;
576 XFontStruct *font; 576 struct face *face;
577 577
578 f = mac_focus_frame (&one_mac_display_info); 578 f = mac_focus_frame (&one_mac_display_info);
579 w = XWINDOW (f->selected_window); 579 w = XWINDOW (f->selected_window);
@@ -598,9 +598,10 @@ mac_handle_text_input_event (next_handler, event, data)
598 + row->visible_height 598 + row->visible_height
599 + f->top_pos + FRAME_OUTER_TO_INNER_DIFF_Y (f)); 599 + f->top_pos + FRAME_OUTER_TO_INNER_DIFF_Y (f));
600 600
601 font = FACE_FROM_ID (f, glyph->face_id)->font; 601 face = FACE_FROM_ID (f, glyph->face_id);
602 if (font) 602 if (face && face->font)
603 { 603 {
604 XFontStruct *font = face->font;
604 Fixed point_size = Long2Fix (font->mac_fontsize); 605 Fixed point_size = Long2Fix (font->mac_fontsize);
605 short height = row->visible_height; 606 short height = row->visible_height;
606 short ascent = row->ascent; 607 short ascent = row->ascent;