mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
slightly optimise cell parsing routine, fix formula being incorrectly loaded
This commit is contained in:
parent
8eda9f226f
commit
ec29e227d4
|
@ -744,7 +744,11 @@ struct Worksheet_Parser
|
|||
{
|
||||
for (auto &attr : parser->attribute_map())
|
||||
{
|
||||
if (attr.first.name() == "ph")
|
||||
if (attr.first.name() == "r")
|
||||
{
|
||||
ref = Cell_Reference(row_arg, attr.second.value);
|
||||
}
|
||||
else if (attr.first.name() == "ph")
|
||||
{
|
||||
is_phonetic = is_true(attr.second.value);
|
||||
}
|
||||
|
@ -760,10 +764,6 @@ struct Worksheet_Parser
|
|||
{
|
||||
type = from_string(attr.second.value);
|
||||
}
|
||||
else if (attr.first.name() == "r")
|
||||
{
|
||||
ref = Cell_Reference(row_arg, attr.second.value);
|
||||
}
|
||||
}
|
||||
int level = 1; // nesting level
|
||||
while (level > 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user