aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2015-01-13 09:10:05 +0100
committerMartin Rudalics2015-01-13 09:10:05 +0100
commit233dcf127dfccea422d9d75e18d5b1383d4c2c62 (patch)
treed358e950cc1aaa83b7321a818bb46c7ce14c3706 /src
parentb53b1ca422ff1925f631be511fbec9deb1e4cc33 (diff)
downloademacs-233dcf127dfccea422d9d75e18d5b1383d4c2c62.tar.gz
emacs-233dcf127dfccea422d9d75e18d5b1383d4c2c62.zip
In adjust_frame_size don't return too early after font size change.
* frame.c (adjust_frame_size): Make sure new numbers of lines/columns get installed after font size change (Bug#19575).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/frame.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 48c7370cade..00068d4330c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12015-01-13 Martin Rudalics <rudalics@gmx.at>
2
3 * frame.c (adjust_frame_size): Make sure new numbers of
4 lines/columns get installed after font size change (Bug#19575).
5
12015-01-13 Dmitry Antipov <dmantipov@yandex.ru> 62015-01-13 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 Add DEFUN attributes. 8 Add DEFUN attributes.
diff --git a/src/frame.c b/src/frame.c
index f138db9cecc..ec580f37c5b 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -335,6 +335,8 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
335 int unit_height = FRAME_LINE_HEIGHT (f); 335 int unit_height = FRAME_LINE_HEIGHT (f);
336 int old_pixel_width = FRAME_PIXEL_WIDTH (f); 336 int old_pixel_width = FRAME_PIXEL_WIDTH (f);
337 int old_pixel_height = FRAME_PIXEL_HEIGHT (f); 337 int old_pixel_height = FRAME_PIXEL_HEIGHT (f);
338 int old_cols = FRAME_COLS (f);
339 int old_lines = FRAME_LINES (f);
338 int new_pixel_width, new_pixel_height; 340 int new_pixel_width, new_pixel_height;
339 /* The following two values are calculated from the old frame pixel 341 /* The following two values are calculated from the old frame pixel
340 sizes and any "new" settings for tool bar, menu bar and internal 342 sizes and any "new" settings for tool bar, menu bar and internal
@@ -466,7 +468,9 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
466 && new_windows_width == old_windows_width 468 && new_windows_width == old_windows_width
467 && new_windows_height == old_windows_height 469 && new_windows_height == old_windows_height
468 && new_pixel_width == old_pixel_width 470 && new_pixel_width == old_pixel_width
469 && new_pixel_height == old_pixel_height) 471 && new_pixel_height == old_pixel_height
472 && new_cols == old_cols
473 && new_lines == old_lines)
470 /* No change. Sanitize window sizes and return. */ 474 /* No change. Sanitize window sizes and return. */
471 { 475 {
472 sanitize_window_sizes (frame, Qt); 476 sanitize_window_sizes (frame, Qt);