mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix issue #34
This commit is contained in:
parent
1ec1b2ac83
commit
7dc48c7c0b
|
@ -27,8 +27,12 @@ bool shared_strings_serializer::read_shared_strings(const xml_document &xml, std
|
||||||
strings.clear();
|
strings.clear();
|
||||||
|
|
||||||
auto root_node = xml.get_child("sst");
|
auto root_node = xml.get_child("sst");
|
||||||
|
auto unique_count = 0;
|
||||||
|
|
||||||
auto unique_count = std::stoull(root_node.get_attribute("uniqueCount"));
|
if (root_node.has_attribute("uniqueCount"))
|
||||||
|
{
|
||||||
|
unique_count = std::stoull(root_node.get_attribute("uniqueCount"));
|
||||||
|
}
|
||||||
|
|
||||||
for (const auto &si_node : root_node.get_children())
|
for (const auto &si_node : root_node.get_children())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user