diff options
| author | Eli Zaretskii | 2013-06-17 19:28:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-06-17 19:28:47 +0300 |
| commit | ca46332555c0284d34d0611cf2653d86fd7fac00 (patch) | |
| tree | f0b013797a9e9426b21b36637a5302552e148787 /src | |
| parent | 254408ca2e35dce8e264f32389963a2167f70da3 (diff) | |
| download | emacs-ca46332555c0284d34d0611cf2653d86fd7fac00.tar.gz emacs-ca46332555c0284d34d0611cf2653d86fd7fac00.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32fns.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0b3c45711dc..e89cfc25728 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -8,6 +8,12 @@ | |||
| 8 | (Fadd_face_text_property): New function that calls | 8 | (Fadd_face_text_property): New function that calls |
| 9 | add_text_properties_1. | 9 | add_text_properties_1. |
| 10 | 10 | ||
| 11 | 2013-06-17 Eli Zaretskii <eliz@gnu.org> | ||
| 12 | |||
| 13 | * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT | ||
| 14 | unless we know that the window w's frame is a frame object. | ||
| 15 | Another attempt at solving bug#14062 and bug#14630. | ||
| 16 | |||
| 11 | 2013-06-17 Paul Eggert <eggert@cs.ucla.edu> | 17 | 2013-06-17 Paul Eggert <eggert@cs.ucla.edu> |
| 12 | 18 | ||
| 13 | Move functions from lisp.h to individual modules when possible. | 19 | 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) | |||
| 3184 | 3184 | ||
| 3185 | form.rcArea.left = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, 0); | 3185 | form.rcArea.left = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, 0); |
| 3186 | form.rcArea.top = WINDOW_TOP_EDGE_Y (w); | 3186 | form.rcArea.top = WINDOW_TOP_EDGE_Y (w); |
| 3187 | if (BUFFERP (w->contents)) | 3187 | if (BUFFERP (w->contents) |
| 3188 | && FRAMEP (WINDOW_FRAME (w))) | ||
| 3188 | form.rcArea.top += WINDOW_HEADER_LINE_HEIGHT (w); | 3189 | form.rcArea.top += WINDOW_HEADER_LINE_HEIGHT (w); |
| 3189 | form.rcArea.right = (WINDOW_BOX_RIGHT_EDGE_X (w) | 3190 | form.rcArea.right = (WINDOW_BOX_RIGHT_EDGE_X (w) |
| 3190 | - WINDOW_RIGHT_MARGIN_WIDTH (w) | 3191 | - WINDOW_RIGHT_MARGIN_WIDTH (w) |