Commit 9e53c9ef authored by Volker Krause's avatar Volker Krause

Fix decoding of float/double property values

This fixes reading train station geo coordinates from trainline.eu booking
confirmations.
parent a38d53b1
......@@ -52,9 +52,13 @@ static QVariant propertyValue(const QMetaProperty &prop, const QJsonValue &v)
}
return dt;
}
case QVariant::Double:
return v.toDouble();
default:
break;
}
if (prop.type() == qMetaTypeId<float>())
return v.toDouble();
return createInstance(v.toObject());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment