diff --git a/src/ChangeLog b/src/ChangeLog index 48c7370cadec72a1b3bced549935b9d54ff56315..00068d4330cc4448a430379280172df04cd36224 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2015-01-13 Martin Rudalics + + * frame.c (adjust_frame_size): Make sure new numbers of + lines/columns get installed after font size change (Bug#19575). + 2015-01-13 Dmitry Antipov Add DEFUN attributes. diff --git a/src/frame.c b/src/frame.c index f138db9cecc009306e7f08b9865a6bd485f5bc79..ec580f37c5bef78917991481282a81630e743b80 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, int unit_height = FRAME_LINE_HEIGHT (f); int old_pixel_width = FRAME_PIXEL_WIDTH (f); int old_pixel_height = FRAME_PIXEL_HEIGHT (f); + int old_cols = FRAME_COLS (f); + int old_lines = FRAME_LINES (f); int new_pixel_width, new_pixel_height; /* The following two values are calculated from the old frame pixel 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, && new_windows_width == old_windows_width && new_windows_height == old_windows_height && new_pixel_width == old_pixel_width - && new_pixel_height == old_pixel_height) + && new_pixel_height == old_pixel_height + && new_cols == old_cols + && new_lines == old_lines) /* No change. Sanitize window sizes and return. */ { sanitize_window_sizes (frame, Qt);