.footnotes = xmemdup (old->footnotes,
old->n_footnotes * sizeof *old->footnotes),
.n_footnotes = old->n_footnotes,
- .style = area_style_clone (NULL, old->style),
+ .style = table_area_style_clone (NULL, old->style),
};
return new;
}
{
free (text->content);
free (text->footnotes);
- area_style_free (text->style);
+ table_area_style_free (text->style);
free (text);
}
}
*new = (struct table_item_layers) {
.layers = xnmalloc (old->n_layers, sizeof *new->layers),
.n_layers = old->n_layers,
- .style = area_style_clone (NULL, old->style),
+ .style = table_area_style_clone (NULL, old->style),
};
for (size_t i = 0; i < new->n_layers; i++)
table_item_layer_copy (&new->layers[i], &old->layers[i]);
for (size_t i = 0; i < layers->n_layers; i++)
table_item_layer_uninit (&layers->layers[i]);
free (layers->layers);
- area_style_free (layers->style);
+ table_area_style_free (layers->style);
free (layers);
}
}
item->title = table_item_text_create (title);
item->layers = NULL;
item->caption = table_item_text_create (caption);
+ item->pt = NULL;
return item;
}
table_item_text_destroy (item->title);
table_item_text_destroy (item->caption);
table_item_layers_destroy (item->layers);
+ pivot_table_unref (item->pt);
table_unref (item->table);
free (item);
}