From: Eli Zaretskii Date: Mon, 17 Jun 2013 16:28:47 +0000 (+0300) Subject: Possible fix for bug #14630, which continues bug #14062. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2016^2~73^2~25 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ca46332555c0284d34d0611cf2653d86fd7fac00;p=emacs.git Possible fix for bug #14630, which continues bug #14062. src/w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT unless we know that the window w's frame is a frame object. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0b3c45711dc..e89cfc25728 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -8,6 +8,12 @@ (Fadd_face_text_property): New function that calls add_text_properties_1. +2013-06-17 Eli Zaretskii + + * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT + unless we know that the window w's frame is a frame object. + Another attempt at solving bug#14062 and bug#14630. + 2013-06-17 Paul Eggert Move functions from lisp.h to individual modules when possible. diff --git a/src/w32fns.c b/src/w32fns.c index d7ac0dd1a6c..970c44ce264 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -3184,7 +3184,8 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) form.rcArea.left = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, 0); form.rcArea.top = WINDOW_TOP_EDGE_Y (w); - if (BUFFERP (w->contents)) + if (BUFFERP (w->contents) + && FRAMEP (WINDOW_FRAME (w))) form.rcArea.top += WINDOW_HEADER_LINE_HEIGHT (w); form.rcArea.right = (WINDOW_BOX_RIGHT_EDGE_X (w) - WINDOW_RIGHT_MARGIN_WIDTH (w)