1999-06-04 Robert Brady <rwb197@ecs.soton.ac.uk>

* gscreen.c (panel_list_configure_contents): Prevent
	divide by zero error. (Fixes bug #1360)
This commit is contained in:
Miguel de Icaza 1999-06-06 03:47:19 +00:00
parent 160f9f75b7
commit eb785b90dc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-06-04 Robert Brady <rwb197@ecs.soton.ac.uk>
* gscreen.c (panel_list_configure_contents): Prevent
divide by zero error. (Fixes bug #1360)
1999-06-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gmain.c (xtoolkit_init): Ignore SIGTTIN and SIGTTOU.

View File

@ -444,7 +444,7 @@ panel_file_list_configure_contents (GtkWidget *sw, WPanel *panel, int main_width
usable_pixels = width - extra_pixels;
total_columns = usable_pixels / char_width;
extra_columns = total_columns - used_columns;
if (extra_columns > 0) {
if (extra_columns > 0 && expandables > 0) {
expand_space = extra_columns / expandables;
extra_space = extra_columns % expandables;
} else