tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.47k stars 409 forks source link

fix writing of missing showGridLines attribute to xlsx file #635

Closed Blakjak88 closed 2 years ago

Blakjak88 commented 2 years ago

Very minor fix to xlsx_producer.cpp to add the already existing attribute to the xlsx file when it is being generated.

Blakjak88 commented 2 years ago

Updated my fork with the check for show_grid_lines() state before writing attribute to XLSX file. Attribute should only be written when the state is false. This is because default state of Excel is no attribute written which means the gridlines are on.

tfussell commented 2 years ago

Updated my fork with the check for show_grid_lines() state before writing attribute to XLSX file. Attribute should only be written when the state is false. This is because default state of Excel is no attribute written which means the gridlines are on.

Thanks for that!