Merge pull request #635 from Blakjak88/master

fix writing of missing showGridLines attribute to xlsx file
pull/646/head
Thomas Fussell 2022-08-07 14:12:15 -05:00 committed by GitHub
commit 538f80794c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -2310,6 +2310,11 @@ void xlsx_producer::write_worksheet(const relationship &rel)
const auto wb_view = source_.view();
const auto view = ws.view();
if (!view.show_grid_lines())
{
write_attribute("showGridLines", write_bool(view.show_grid_lines()));
}
if ((wb_view.active_tab.is_set() && (ws.id() - 1) == wb_view.active_tab.get())
|| (!wb_view.active_tab.is_set() && ws.id() == 1))
{