mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #172] About the Known Issues and Bugs : Content is Unreadable. Open and Repair (with not repair at all) #139
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nipou on GitHub (Apr 27, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/172
Originally assigned to: @jmcnamara on GitHub.
Some structures require minimal initialization such as:
memset(&xline, 0, sizeof(lxw_chart_line));
memset(&yline, 0, sizeof(lxw_chart_line));
Others specific values like: lxw_chart_font need faceName != “” and a bad charset cause fatal error.
In C ++ a structure can have a constructor, this would always generate valid empty structures.
If you absolutely want C code, you would need initialization functions like
init_lxw_chart_font (lxw_chart_font *)
init_lxw_chart_line (lxw_chart_line *)
It would also be useful to have validation functions such as:
bool validate_lxw_chart_font (lxw_chart_font *)
bool validate_lxw_chart_line (lxw_chart_line *)
Who could correct a badly filled structure and return false in case of correction. Or at least false in case of error.
@jmcnamara commented on GitHub (Apr 27, 2018):
At some stage I may add functions that return initialised versions of structs used as parameters. But for now just initialise any structs that you are going to pass to libxlsxwriter functions: