From af8f3e5c42f7362bc724ce2e0fa64fd456dc7ec6 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Thu, 11 May 2006 21:26:54 +0000 Subject: [PATCH] (redisplay_tool_bar): Handle large tool-bar-border values. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 984980324b0..c0caaf4daf2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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) -- 2.39.5