Skip to content

Commit

Permalink
Update write.c
Browse files Browse the repository at this point in the history
update lxw_version 0.8.7
  • Loading branch information
sirhvd authored Jul 22, 2019
1 parent a8fa9e8 commit 044852c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ workbook_file(xls_resource_t *self)
_add_chart_cache_data(self->workbook);

/* Create a packager object to assemble sub-elements into a zip file. */
packager = lxw_packager_new(self->workbook->filename, self->workbook->options.tmpdir);
#ifdef HAVE_WORKBOOK_ADD_VBA_PROJECT
packager = lxw_packager_new(self->workbook->filename, self->workbook->options.tmpdir, 0);
#else
packager = lxw_packager_new(self->workbook->filename, self->workbook->options.tmpdir);
#endif

/* If the packager fails it is generally due to a zip permission error. */
if (packager == NULL) {
Expand Down

0 comments on commit 044852c

Please sign in to comment.