]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: fix stupid typo
authorKarel Zak <kzak@redhat.com>
Wed, 24 Feb 2016 12:42:28 +0000 (13:42 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Feb 2016 12:42:28 +0000 (13:42 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/table_print.c

index e37f27761edcbcae01eb94b84d0fdba836d80de1..96ec137596d35d4fb85674d1805e687f6846288b 100644 (file)
@@ -957,8 +957,7 @@ static int count_column_width(struct libscols_table *tb,
 
        cl->width = 0;
 
-
-       if (cl->width_min) {
+       if (!cl->width_min) {
                if (cl->width_hint < 1 && scols_table_is_maxout(tb))
                        cl->width_min = (size_t) (cl->width_hint * tb->termwidth) - (is_last_column(cl) ? 0 : 1);
                if (scols_cell_get_data(&cl->header)) {