Fix bug in ParseNumberArrayProperty()

Only doubles were being accepted instead of any number (including ordinals)
This commit is contained in:
jrkoonce 2019-08-29 13:56:58 -05:00
parent 5cecc41db9
commit 9b6f52e98a

View File

@ -3217,7 +3217,7 @@ static bool ParseNumberArrayProperty(std::vector<double> *ret, std::string *err,
for (auto i = ArrayBegin(GetValue(it)); i != end;
++i) {
double numberValue;
const bool isNumber = GetDouble(*i, numberValue);
const bool isNumber = GetNumber(*i, numberValue);
if (!isNumber) {
if (required) {
if (err) {