Update xlsx_producer.cpp

This commit is contained in:
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

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))
{