Closed wxie7 closed 3 months ago
It is also worth noting that when criteria are 16, 27, 29, 31, 33, SEGV will result. There may be other criteria to consider
It is also worth noting that when criteria are 16, 27, 29, 31, 33, SEGV will result. There may be other criteria to consider
Thanks for the report. That is a bug. There should be validation in the function to check that conditional formats that reference strings actually have a non-NULL string.
The other issues are probably similar. I'll take a look at those too.
There should be validation in the function to check that conditional formats that reference strings actually have a non-NULL string.
It turns out that I did have validation in the code for this but the example abuses the API to use a TEXT criteria for a CELL conditional format.
The documentation for each conditional format type lists the allowable criteria (example). Nevertheless, the library should validate that as well. I'll add a new check.
I've pushed a fix to main that checks that the conditional formatting criteria matches the conditional format type. Your example will now return a lxw_error
and warning.
hello, maybe there exist a bug in
workbook_close
. Below is an exampleThe following is asan information