-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with images in hidden cells.
Fix issue where images that started in hidden rows/cols weren't placed correctly in the worksheet.
- Loading branch information
Showing
10 changed files
with
125 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/***************************************************************************** | ||
* Test cases for libxlsxwriter. | ||
* | ||
* Test to compare output against Excel files. | ||
* | ||
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org | ||
* | ||
*/ | ||
|
||
#include "xlsxwriter.h" | ||
|
||
int main() { | ||
|
||
lxw_workbook *workbook = new_workbook("test_image44.xlsx"); | ||
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL); | ||
|
||
worksheet_insert_image(worksheet, CELL("E9"), "images/red.png"); | ||
|
||
worksheet_set_row(worksheet, 8, 30, NULL); | ||
|
||
return workbook_close(workbook); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/***************************************************************************** | ||
* Test cases for libxlsxwriter. | ||
* | ||
* Test to compare output against Excel files. | ||
* | ||
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org | ||
* | ||
*/ | ||
|
||
#include "xlsxwriter.h" | ||
|
||
int main() { | ||
|
||
lxw_workbook *workbook = new_workbook("test_image45.xlsx"); | ||
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL); | ||
|
||
worksheet_insert_image(worksheet, CELL("E9"), "images/red.png"); | ||
|
||
lxw_row_col_options options = {.hidden = LXW_TRUE}; | ||
worksheet_set_row_opt(worksheet, 8, 30, NULL, &options); | ||
|
||
return workbook_close(workbook); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/***************************************************************************** | ||
* Test cases for libxlsxwriter. | ||
* | ||
* Test to compare output against Excel files. | ||
* | ||
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org | ||
* | ||
*/ | ||
|
||
#include "xlsxwriter.h" | ||
|
||
int main() { | ||
|
||
lxw_workbook *workbook = new_workbook("test_image46.xlsx"); | ||
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL); | ||
|
||
lxw_image_options image_options = {.x_offset = 0, .y_offset = 4}; | ||
worksheet_insert_image_opt(worksheet, CELL("E9"), "images/red.png", &image_options); | ||
|
||
lxw_row_col_options row_options = {.hidden = LXW_TRUE}; | ||
worksheet_set_row_opt(worksheet, 8, 30, NULL, &row_options); | ||
|
||
return workbook_close(workbook); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/***************************************************************************** | ||
* Test cases for libxlsxwriter. | ||
* | ||
* Test to compare output against Excel files. | ||
* | ||
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org | ||
* | ||
*/ | ||
|
||
#include "xlsxwriter.h" | ||
|
||
int main() { | ||
|
||
lxw_workbook *workbook = new_workbook("test_image47.xlsx"); | ||
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL); | ||
|
||
worksheet_insert_image(worksheet, CELL("E9"), "images/red.png"); | ||
|
||
lxw_row_col_options options = {.hidden = LXW_TRUE}; | ||
worksheet_set_row_opt(worksheet, 9, LXW_DEF_ROW_HEIGHT, NULL, &options); | ||
|
||
return workbook_close(workbook); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.