mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fix every 16th row (17, 33, ...) having data dropped
This commit is contained in:
parent
d81555dbae
commit
f62e5fe5f7
|
@ -2409,9 +2409,9 @@ void xlsx_producer::write_worksheet(const relationship &rel)
|
|||
// See note for CT_Row, span attribute about block optimization
|
||||
if (first_row_in_block)
|
||||
{
|
||||
first_check_row = first_row;
|
||||
first_check_row = row;
|
||||
// round up to the next multiple of 16
|
||||
last_check_row = (((first_row - 1) / 16) + 1) * 16;
|
||||
last_check_row = ((row / 16) + 1) * 16;
|
||||
}
|
||||
|
||||
for (auto check_row = first_check_row; check_row <= last_check_row; ++check_row)
|
||||
|
|
Loading…
Reference in New Issue
Block a user