From 348881876e6428568f63fb9c77dbfbedb665f4a3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Dec 15 2020 17:54:55 +0000 Subject: format-table: when duplicating a cell, also copy the color (cherry picked from commit 13b0d4d7bdb674d0e51a6d595abd1e7bf2691bf9) Related: #1689832 patch_name: 0125-format-table-when-duplicating-a-cell-also-copy-the-c.patch present_in_specfile: true location_in_specfile: 125 squash_commits: true --- diff --git a/src/basic/format-table.c b/src/basic/format-table.c index 94e796d..3429d9a 100644 --- a/src/basic/format-table.c +++ b/src/basic/format-table.c @@ -414,6 +414,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;