# HG changeset patch # User Kim F. Storm # Date 1147382814 0 # Node ID e11c9bf8184356531c5f282f118c68c0fdcff561 # Parent 51662caefabab030f79a5bfe01e1ee3d1dcd51d7 (redisplay_tool_bar): Handle large tool-bar-border values. diff -r 51662caefaba -r e11c9bf81843 src/xdisp.c --- a/src/xdisp.c Thu May 11 21:26:43 2006 +0000 +++ b/src/xdisp.c Thu May 11 21:26:54 2006 +0000 @@ -9723,7 +9723,7 @@ 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)