From dfed088a50298fe4a9d0eb8a9d0a2711dfc206c1 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 10 Mar 2014 15:18:54 +0100 Subject: Fix copying of Property's Data properties don't contain valid data in the set field if they are being stored in Objects. Thus we should never access that field unless we are dealing with accessor properties. Change-Id: I19dcbaee7ebd042ae24387f92a93571d75ca578a Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4arraydata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4arraydata.cpp') diff --git a/src/qml/jsruntime/qv4arraydata.cpp b/src/qml/jsruntime/qv4arraydata.cpp index 44727cba17..f03f5cd378 100644 --- a/src/qml/jsruntime/qv4arraydata.cpp +++ b/src/qml/jsruntime/qv4arraydata.cpp @@ -595,7 +595,7 @@ uint ArrayData::append(Object *obj, const ArrayObject *otherObj, uint n) } else { for (const SparseArrayNode *it = static_cast(other)->sparse->begin(); it != static_cast(other)->sparse->end(); it = it->nextNode()) - obj->arraySet(oldSize + it->key(), other->data[it->value]); + obj->arraySet(oldSize + it->key(), ValueRef(other->data[it->value])); } } else { obj->arrayPut(oldSize, other->data, n); -- cgit v1.2.3