]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_tool_bar): Handle large tool-bar-border values.
authorKim F. Storm <storm@cua.dk>
Thu, 11 May 2006 21:26:54 +0000 (21:26 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 11 May 2006 21:26:54 +0000 (21:26 +0000)
src/xdisp.c

index 984980324b0749690aac1e09faa0e61623569693..c0caaf4daf22ee0ec050e075ed37ec05363a914c 100644 (file)
@@ -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)