# HG changeset patch # User Kim F. Storm # Date 1145831218 0 # Node ID 29a0b82dbf7a1d00ecb664dab78e981fb3b12011 # Parent ef912c974d3221e9d53e0680e47b2563f2a30eec (x_set_font): Clear f->n_tool_bar_rows and current frame matrices to force recalculation of tool-bar height after font change. diff -r ef912c974d32 -r 29a0b82dbf7a src/frame.c --- a/src/frame.c Sun Apr 23 22:26:35 2006 +0000 +++ b/src/frame.c Sun Apr 23 22:26:58 2006 +0000 @@ -3095,6 +3095,11 @@ 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); }