mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Update xlsx_producer.cpp
sheet_id is already a local var, don't overwrite it
This commit is contained in:
parent
4fa14b07ec
commit
6dda4a23e6
|
@ -715,8 +715,7 @@ void xlsx_producer::write_workbook(const relationship &rel)
|
||||||
|
|
||||||
if (name.sheet_id.is_set())
|
if (name.sheet_id.is_set())
|
||||||
{
|
{
|
||||||
const auto sheet_id = name.sheet_id.get();
|
write_attribute("localSheetId", std::to_string(name.sheet_id.get() - 1)); // Don't think this is meant to require subtracting 1?
|
||||||
write_attribute("localSheetId", std::to_string(sheet_id - 1)); // Don't think this is meant to require subtracting 1?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name.hidden.is_set())
|
if (name.hidden.is_set())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user