Commit af8f3e5c authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(redisplay_tool_bar): Handle large tool-bar-border values.

parent f46f3e21
......@@ -9723,7 +9723,7 @@ redisplay_tool_bar (f)
border = 0;
 
rows = f->n_tool_bar_rows;
height = (it.last_visible_y - border) / rows;
height = max (1, (it.last_visible_y - border) / rows);
extra = it.last_visible_y - border - height * rows;
 
while (it.current_y < it.last_visible_y)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment