Skip to content

Commit

Permalink
Prep for release 0.7.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Aug 30, 2018
1 parent b203f94 commit 2fd7a4f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
9 changes: 9 additions & 0 deletions Changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
@page changes Changes


## 0.7.8 August 30 2018

- Added `worksheet_insert_image_buffer()` function to insert images from
memory buffers. See @ref image_buffer.c.
Feature request [#125][gh_125].

[gh_125]: https://github.com/jmcnamara/libxlsxwriter/issues/125


## 0.7.7 May 16 2018

- Fix to ensure the use of wide filenames on Windows with Microsoft Visual
Expand Down
2 changes: 1 addition & 1 deletion include/xlsxwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
#include "xlsxwriter/format.h"
#include "xlsxwriter/utility.h"

#define LXW_VERSION "0.7.7"
#define LXW_VERSION "0.7.8"

#endif /* __LXW_XLSXWRITER_H__ */
4 changes: 2 additions & 2 deletions include/xlsxwriter/worksheet.h
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ lxw_error worksheet_insert_image_opt(lxw_worksheet *worksheet,
lxw_error worksheet_insert_image_buffer(lxw_worksheet *worksheet,
lxw_row_t row,
lxw_col_t col,
unsigned char *image_buffer,
const unsigned char *image_buffer,
size_t image_size);

/**
Expand Down Expand Up @@ -1713,7 +1713,7 @@ lxw_error worksheet_insert_image_buffer(lxw_worksheet *worksheet,
lxw_error worksheet_insert_image_buffer_opt(lxw_worksheet *worksheet,
lxw_row_t row,
lxw_col_t col,
unsigned char *image_buffer,
const unsigned char *image_buffer,
size_t image_size,
lxw_image_options *options);

Expand Down
2 changes: 1 addition & 1 deletion libxlsxwriter.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "libxlsxwriter"
s.version = "0.7.7"
s.version = "0.7.8"
s.summary = "Libxlsxwriter: A C library for creating Excel XLSX files."
s.ios.deployment_target = "6.0"
s.osx.deployment_target = "10.8"
Expand Down
11 changes: 7 additions & 4 deletions src/worksheet.c
Original file line number Diff line number Diff line change
Expand Up @@ -5366,8 +5366,9 @@ worksheet_insert_image(lxw_worksheet *self,

lxw_error
worksheet_insert_image_buffer_opt(lxw_worksheet *self,
lxw_row_t row_num, lxw_col_t col_num,
unsigned char *image_buffer,
lxw_row_t row_num,
lxw_col_t col_num,
const unsigned char *image_buffer,
size_t image_size,
lxw_image_options *user_options)
{
Expand Down Expand Up @@ -5440,8 +5441,10 @@ worksheet_insert_image_buffer_opt(lxw_worksheet *self,

lxw_error
worksheet_insert_image_buffer(lxw_worksheet *self,
lxw_row_t row_num, lxw_col_t col_num,
unsigned char *image_buffer, size_t image_size)
lxw_row_t row_num,
lxw_col_t col_num,
const unsigned char *image_buffer,
size_t image_size)
{
return worksheet_insert_image_buffer_opt(self, row_num, col_num,
image_buffer, image_size, NULL);
Expand Down
2 changes: 1 addition & 1 deletion third_party/tmpfileplus/tmpfileplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static FILE *mktempfile_internal(const char *tmpdir, const char *pfx, char **tmp
*/
{
FILE *fp;
int fd;
int fd = 0;
char randpart[] = "1234567890";
size_t lentempname;
int i;
Expand Down

0 comments on commit 2fd7a4f

Please sign in to comment.