mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
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:
parent
160f9f75b7
commit
eb785b90dc
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user