mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
only expect alternatecontent if it's present
This commit is contained in:
parent
689bbee098
commit
5b61145a0b
|
@ -2480,10 +2480,13 @@ void xlsx_consumer::read_comments(worksheet ws)
|
|||
ws.cell(cell_ref).comment(comment(read_rich_text(qn("spreadsheetml", "text")), authors.at(author_id)));
|
||||
|
||||
expect_end_element(qn("spreadsheetml", "text"));
|
||||
// specifc name space mc alternateContent element
|
||||
|
||||
if (in_element(xml::qname(qn("spreadsheetml", "comment"))))
|
||||
{
|
||||
expect_start_element(qn("mc", "AlternateContent"), xml::content::complex);
|
||||
skip_remaining_content(qn("mc", "AlternateContent"));
|
||||
expect_end_element(qn("mc", "AlternateContent"));
|
||||
}
|
||||
|
||||
expect_end_element(qn("spreadsheetml", "comment"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user