Fix Overlays.getProperty method not returning value to script

This commit is contained in:
David Rowe 2016-12-09 12:41:54 +13:00
parent 4c236b293e
commit 1213a1dfd1

View file

@ -396,7 +396,7 @@ QScriptValue OverlayPropertyResultToScriptValue(QScriptEngine* engine, const Ove
if (!value.value.isValid()) { if (!value.value.isValid()) {
return QScriptValue::UndefinedValue; return QScriptValue::UndefinedValue;
} }
return engine->newVariant(value.value); return engine->toScriptValue(value.value);
} }
void OverlayPropertyResultFromScriptValue(const QScriptValue& object, OverlayPropertyResult& value) { void OverlayPropertyResultFromScriptValue(const QScriptValue& object, OverlayPropertyResult& value) {