From f5ea5348c074f991749699b50face5de1b110103 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 28 Jan 2001 16:27:09 +0000 Subject: [PATCH] get_max_column_count(): we didn't handle correctly a situation where last column of the list was empty git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1165 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/misc.c b/src/core/misc.c index 7326cf81..4c57db71 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -650,7 +650,7 @@ int get_max_column_count(GSList *items, COLUMN_LEN_FUNC len_func, } for (n = max_columns-1; n >= 0; n--) { - if (columns_width[n] <= max_width) + if (columns_width[n] <= max_width && columns[n][n] > 0) break; } ret = n+1;