changeset 70592:e11c9bf81843

(redisplay_tool_bar): Handle large tool-bar-border values.
author Kim F. Storm <storm@cua.dk>
date Thu, 11 May 2006 21:26:54 +0000
parents 51662caefaba
children 5bb74e9610d3
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)