Update xlsx_producer.cpp

pull/635/head
Blakjak88 2022-07-05 12:53:47 +08:00 committed by GitHub
parent d88c901faa
commit dbfed051c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2310,6 +2310,8 @@ void xlsx_producer::write_worksheet(const relationship &rel)
const auto wb_view = source_.view();
const auto view = ws.view();
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))
{