pivot-table: Fix cut and paste error in pivot_value_clone().
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Jan 2021 05:24:13 +0000 (21:24 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Jan 2021 05:24:13 +0000 (21:24 -0800)
src/output/pivot-table.c

index b3d6c399dae6ccd142559837252e887f16d75286..5bcc6dc7ccc2ff5a170b53af99155b23d68461f9 100644 (file)
@@ -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);