Do not show separator line when no entry.

This commit is contained in:
QC 2014-04-28 21:34:48 +02:00
parent fc88182484
commit ab1b6e7127
1 changed files with 1 additions and 1 deletions

View File

@ -1186,7 +1186,7 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi
menu_draw ( text, boxes, max_lines, num_lines, &last_offset, selected, filtered );
// Why do we need the specian -1?
if ( config.wmode == VERTICAL )
if ( config.wmode == VERTICAL && max_lines > 0)
{
XDrawLine ( display, main_window, gc, ( config.padding ),
line_height + ( config.padding ) + ( LINE_MARGIN - 2 ) / 2,