mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-22 06:05:46 -06:00
parent
18c8cb6dd2
commit
ef35921595
1 changed files with 2 additions and 2 deletions
|
|
@ -4780,7 +4780,7 @@ worksheet_set_header_opt(lxw_worksheet *self, const char *string,
|
|||
lxw_header_footer_options *options)
|
||||
{
|
||||
if (options) {
|
||||
if (options->margin > 0)
|
||||
if (options->margin >= 0.0)
|
||||
self->margin_header = options->margin;
|
||||
}
|
||||
|
||||
|
|
@ -4804,7 +4804,7 @@ worksheet_set_footer_opt(lxw_worksheet *self, const char *string,
|
|||
lxw_header_footer_options *options)
|
||||
{
|
||||
if (options) {
|
||||
if (options->margin > 0)
|
||||
if (options->margin >= 0.0)
|
||||
self->margin_footer = options->margin;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue