diff src/xdisp.c @ 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 41e0d3d78491
children 28fcaa2d37b0
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