From b96adcc0447f11136edb0a4e957fb6bd5b3c0d93 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 8 Jan 2021 21:24:13 -0800 Subject: [PATCH] pivot-table: Fix cut and paste error in pivot_value_clone(). --- src/output/pivot-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index b3d6c399da..5bcc6dc7cc 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -2448,7 +2448,7 @@ pivot_value_clone (const struct pivot_value *old) font_style_copy (NULL, new->font_style, old->font_style); } if (old->cell_style) - new->font_style = xmemdup (old->font_style, sizeof *new->font_style); + new->cell_style = xmemdup (old->cell_style, sizeof *new->cell_style); if (old->n_subscripts) { new->subscripts = xnmalloc (old->n_subscripts, sizeof *new->subscripts); -- 2.30.2