diff options
| author | Kim F. Storm | 2006-05-11 21:26:54 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-05-11 21:26:54 +0000 |
| commit | af8f3e5c42f7362bc724ce2e0fa64fd456dc7ec6 (patch) | |
| tree | 53cd218d3f5c7115732fb86404651a27d26a71d2 /src | |
| parent | f46f3e210265fd39f07839f34964f5454b342934 (diff) | |
| download | emacs-af8f3e5c42f7362bc724ce2e0fa64fd456dc7ec6.tar.gz emacs-af8f3e5c42f7362bc724ce2e0fa64fd456dc7ec6.zip | |
(redisplay_tool_bar): Handle large tool-bar-border values.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 9723 | border = 0; | 9723 | border = 0; |
| 9724 | 9724 | ||
| 9725 | rows = f->n_tool_bar_rows; | 9725 | rows = f->n_tool_bar_rows; |
| 9726 | height = (it.last_visible_y - border) / rows; | 9726 | height = max (1, (it.last_visible_y - border) / rows); |
| 9727 | extra = it.last_visible_y - border - height * rows; | 9727 | extra = it.last_visible_y - border - height * rows; |
| 9728 | 9728 | ||
| 9729 | while (it.current_y < it.last_visible_y) | 9729 | while (it.current_y < it.last_visible_y) |