mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 06:06:09 -06:00
parent
f6e8305d1b
commit
fca1a346e9
1 changed files with 6 additions and 0 deletions
|
|
@ -2166,6 +2166,12 @@ workbook_add_chart(lxw_workbook *self, uint8_t type)
|
|||
{
|
||||
lxw_chart *chart;
|
||||
|
||||
if (type == LXW_CHART_NONE || type > LXW_CHART_RADAR_FILLED) {
|
||||
LXW_WARN_FORMAT1("workbook_add_chart(): invalid chart type: %d",
|
||||
type);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Create a new chart object. */
|
||||
chart = lxw_chart_new(type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue