aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2006-04-23 22:26:58 +0000
committerKim F. Storm2006-04-23 22:26:58 +0000
commitca03f883c58cbb29e626eabadadcda684b4750e6 (patch)
treef3706d7f200981f570a38bca1c4d14807af8001e /src
parente9346494798e623466104d5772e7c08592a24158 (diff)
downloademacs-ca03f883c58cbb29e626eabadadcda684b4750e6.tar.gz
emacs-ca03f883c58cbb29e626eabadadcda684b4750e6.zip
(x_set_font): Clear f->n_tool_bar_rows and current frame
matrices to force recalculation of tool-bar height after font change.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index dd91e436600..c08d5a6f84d 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3095,6 +3095,11 @@ x_set_font (f, arg, oldval)
3095 else if (!NILP (Fequal (result, oldval))) 3095 else if (!NILP (Fequal (result, oldval)))
3096 return; 3096 return;
3097 3097
3098 /* Recalculate toolbar height. */
3099 f->n_tool_bar_rows = 0;
3100 /* Ensure we redraw it. */
3101 clear_current_matrices (f);
3102
3098 store_frame_param (f, Qfont, result); 3103 store_frame_param (f, Qfont, result);
3099 recompute_basic_faces (f); 3104 recompute_basic_faces (f);
3100 } 3105 }