From ca03f883c58cbb29e626eabadadcda684b4750e6 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Sun, 23 Apr 2006 22:26:58 +0000 Subject: [PATCH] (x_set_font): Clear f->n_tool_bar_rows and current frame matrices to force recalculation of tool-bar height after font change. --- src/frame.c | 5 +++++ 1 file changed, 5 insertions(+) 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) else if (!NILP (Fequal (result, oldval))) return; + /* Recalculate toolbar height. */ + f->n_tool_bar_rows = 0; + /* Ensure we redraw it. */ + clear_current_matrices (f); + store_frame_param (f, Qfont, result); recompute_basic_faces (f); } -- 2.39.5