mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge commit 'b83dcd6a1f98965cb02750c21d15eb950a828c77'
This commit is contained in:
commit
5936b1e6af
|
@ -2505,6 +2505,14 @@ variant xlsx_consumer::read_variant()
|
|||
{
|
||||
value = variant(std::stoi(text));
|
||||
}
|
||||
if (element == qn("vt", "bool"))
|
||||
{
|
||||
// bool could be "0" or "false"
|
||||
bool bvalue;
|
||||
if (text[0] == '0' or text[0] == 'f' or text[0]=='F') bvalue = false;
|
||||
else bvalue = true;
|
||||
value = variant(bvalue);
|
||||
}
|
||||
else if (element == qn("vt", "vector"))
|
||||
{
|
||||
auto size = parser().attribute<std::size_t>("size");
|
||||
|
|
Loading…
Reference in New Issue
Block a user