1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00

(build_desired_tool_bar_string): Make sure we have

a desired tool bar string, even if there are not tool bar
items.
This commit is contained in:
Gerd Moellmann 2001-01-22 19:13:08 +00:00
parent eed0ee77fa
commit cb2ddc5366
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2001-01-22 Gerd Moellmann <gerd@gnu.org>
* xdisp.c (build_desired_tool_bar_string): Make sure we have
a desired tool bar string, even if there are not tool bar
items.
* xdisp.c (Ftool_bar_lines_needed): New function.
(syms_of_xdisp): Defsubr it.

View File

@ -7161,7 +7161,7 @@ build_desired_tool_bar_string (f)
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