Skip to content

Commit

Permalink
Merge pull request tfussell#652 from tfussell/fix-merge-cell-count
Browse files Browse the repository at this point in the history
Ignore merge cell count
  • Loading branch information
tfussell authored Aug 22, 2022
2 parents 5620e5b + 4c79627 commit fbae8cd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions source/detail/serialization/xlsx_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,20 +954,13 @@ worksheet xlsx_consumer::read_worksheet_end(const std::string &rel_id)
}
else if (current_worksheet_element == qn("spreadsheetml", "mergeCells")) // CT_MergeCells 0-1
{
auto count = std::stoull(parser().attribute("count"));
parser().attribute_map();

while (in_element(qn("spreadsheetml", "mergeCells")))
{
expect_start_element(qn("spreadsheetml", "mergeCell"), xml::content::simple);
ws.merge_cells(range_reference(parser().attribute("ref")));
expect_end_element(qn("spreadsheetml", "mergeCell"));

count--;
}

if (count != 0)
{
throw invalid_file("sizes don't match");
}
}
else if (current_worksheet_element == qn("spreadsheetml", "phoneticPr")) // CT_PhoneticPr 0-1
Expand Down

0 comments on commit fbae8cd

Please sign in to comment.