From dbfed051c86ba9c525a4e5e67620b95a3eca6ddf Mon Sep 17 00:00:00 2001 From: Blakjak88 Date: Tue, 5 Jul 2022 12:53:47 +0800 Subject: [PATCH] Update xlsx_producer.cpp --- source/detail/serialization/xlsx_producer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/detail/serialization/xlsx_producer.cpp b/source/detail/serialization/xlsx_producer.cpp index c96c5817..c834f866 100644 --- a/source/detail/serialization/xlsx_producer.cpp +++ b/source/detail/serialization/xlsx_producer.cpp @@ -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)) {