changeset 35474:1859c648801a

(build_desired_tool_bar_string): Make sure we have a desired tool bar string, even if there are not tool bar items.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 22 Jan 2001 19:12:13 +0000
parents 6b9d1a2fb28b
children 54a4f271b03f
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Jan 22 17:15:50 2001 +0000
+++ b/src/xdisp.c	Mon Jan 22 19:12:13 2001 +0000
@@ -7161,7 +7161,7 @@
   size_needed = f->n_tool_bar_items;
   
   /* Reuse f->desired_tool_bar_string, if possible.  */
-  if (size < size_needed)
+  if (size < size_needed || NILP (f->desired_tool_bar_string))
     f->desired_tool_bar_string = Fmake_string (make_number (size_needed),
 					       make_number (' '));
   else