Skip to content

Commit

Permalink
Update xlsx_producer.cpp
Browse files Browse the repository at this point in the history
sheet_id is already a local var, don't overwrite it
  • Loading branch information
musshorn committed Nov 21, 2022
1 parent 4fa14b0 commit 6dda4a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/detail/serialization/xlsx_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,7 @@ void xlsx_producer::write_workbook(const relationship &rel)

if (name.sheet_id.is_set())
{
const auto sheet_id = name.sheet_id.get();
write_attribute("localSheetId", std::to_string(sheet_id - 1)); // Don't think this is meant to require subtracting 1?
write_attribute("localSheetId", std::to_string(name.sheet_id.get() - 1)); // Don't think this is meant to require subtracting 1?
}

if (name.hidden.is_set())
Expand Down

0 comments on commit 6dda4a2

Please sign in to comment.