mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Revert "Shared strings"
This reverts commit d6262df55583bd88f7bb402a01685a6dd5b1744e.
This commit is contained in:
parent
863372331f
commit
18e82f35d3
@ -2098,15 +2098,13 @@ void xlsx_consumer::read_shared_string_table()
|
|||||||
{
|
{
|
||||||
expect_start_element(qn("spreadsheetml", "si"), xml::content::complex);
|
expect_start_element(qn("spreadsheetml", "si"), xml::content::complex);
|
||||||
auto rt = read_rich_text(qn("spreadsheetml", "si"));
|
auto rt = read_rich_text(qn("spreadsheetml", "si"));
|
||||||
// by reading in it can happen we have similar strings from modified excel worksheets
|
target_.add_shared_string(rt);
|
||||||
// so allow to add duplicates
|
|
||||||
target_.add_shared_string(rt, true);
|
|
||||||
expect_end_element(qn("spreadsheetml", "si"));
|
expect_end_element(qn("spreadsheetml", "si"));
|
||||||
}
|
}
|
||||||
|
|
||||||
expect_end_element(qn("spreadsheetml", "sst"));
|
expect_end_element(qn("spreadsheetml", "sst"));
|
||||||
|
|
||||||
if (has_unique_count && unique_count != target_.shared_strings_by_id().size())
|
if (has_unique_count && unique_count != target_.shared_strings().size())
|
||||||
{
|
{
|
||||||
throw invalid_file("sizes don't match");
|
throw invalid_file("sizes don't match");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user