changeset 72490:82853c744b53

(update_tool_bar): Redisplay toolbar also when only number of items changes.
author Kim F. Storm <storm@cua.dk>
date Tue, 22 Aug 2006 21:32:04 +0000
parents b0aed237ce9c
children 4a00aa68d137
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Aug 22 21:31:50 2006 +0000
+++ b/src/xdisp.c	Tue Aug 22 21:32:04 2006 +0000
@@ -9391,7 +9391,8 @@
                                          &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