]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_tool_bar): Redisplay toolbar also when only
authorKim F. Storm <storm@cua.dk>
Tue, 22 Aug 2006 21:32:04 +0000 (21:32 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 22 Aug 2006 21:32:04 +0000 (21:32 +0000)
number of items changes.

src/xdisp.c

index 9911f47c2a4243a9bae7507a4c8c9be06f2f32e4..640f7006dd14dfe2fa27325a2f15b503410da156 100644 (file)
@@ -9391,7 +9391,8 @@ update_tool_bar (f, save_match_data)
                                          &new_n_tool_bar);
 
          /* Redisplay the tool-bar if we changed it.  */
-         if (NILP (Fequal (new_tool_bar, f->tool_bar_items)))
+         if (new_n_tool_bar != f->n_tool_bar_items
+             || NILP (Fequal (new_tool_bar, f->tool_bar_items)))
             {
               /* Redisplay that happens asynchronously due to an expose event
                  may access f->tool_bar_items.  Make sure we update both