From: Lennart Poettering Date: Thu, 8 Nov 2018 20:16:23 +0000 (+0100) Subject: format-table: when duplicating a cell, also copy the color X-Git-Tag: v240~167^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9;p=thirdparty%2Fsystemd.git format-table: when duplicating a cell, also copy the color --- diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 10e15c9d709..38dfb145c92 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -398,6 +398,8 @@ static int table_dedup_cell(Table *t, TableCell *cell) { if (!nd) return -ENOMEM; + nd->color = od->color; + table_data_unref(od); t->data[i] = nd;