Merge commit 'b83dcd6a1f98965cb02750c21d15eb950a828c77'

This commit is contained in:
Thomas Fussell 2017-02-03 18:38:44 -06:00
commit 5936b1e6af

View File

@ -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");