]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_font): Clear f->n_tool_bar_rows and current frame
authorKim F. Storm <storm@cua.dk>
Sun, 23 Apr 2006 22:26:58 +0000 (22:26 +0000)
committerKim F. Storm <storm@cua.dk>
Sun, 23 Apr 2006 22:26:58 +0000 (22:26 +0000)
matrices to force recalculation of tool-bar height after font change.

src/frame.c

index dd91e4366002a75471a679dd16c17e02d9a044c1..c08d5a6f84d327bfcdc5fb5278c6a024100b6ea7 100644 (file)
@@ -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);
     }