Fix bug with scroll in bars: do not scroll if bar is hidden

This commit is contained in:
Sebastien Helleu 2009-05-03 15:04:22 +02:00
parent ad418a3a5a
commit d51626c67b

View File

@ -2105,6 +2105,12 @@ gui_bar_scroll (struct t_gui_bar *bar, struct t_gui_buffer *buffer,
char *str, *error;
int length, add_x, add, percent, scroll_beginning, scroll_end;
if (!bar)
return 0;
if (CONFIG_BOOLEAN(bar->options[GUI_BAR_OPTION_HIDDEN]))
return 1;
add_x = 0;
str = NULL;
number = 0;