diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-05 09:56:22 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-05 09:56:22 (GMT) |
commit | 315d460e6a4ce5fa8c9fcb90474d43174b5e0b0d (patch) | |
tree | fa3275cac58039beb2deb64783f029a71b4b3bd2 /src/declarative/qml/qmlprivate.h | |
parent | 1a7cee240904a3aea112fc102901066fe26d45d6 (diff) | |
download | Qt-315d460e6a4ce5fa8c9fcb90474d43174b5e0b0d.zip Qt-315d460e6a4ce5fa8c9fcb90474d43174b5e0b0d.tar.gz Qt-315d460e6a4ce5fa8c9fcb90474d43174b5e0b0d.tar.bz2 |
Tests
Diffstat (limited to 'src/declarative/qml/qmlprivate.h')
-rw-r--r-- | src/declarative/qml/qmlprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlprivate.h b/src/declarative/qml/qmlprivate.h index e5b1060..0eec43c 100644 --- a/src/declarative/qml/qmlprivate.h +++ b/src/declarative/qml/qmlprivate.h @@ -283,7 +283,8 @@ int QmlPrivate::list_op(QmlPrivate::ListOp op, int val, } break; case QmlPrivate::Value: - *((QVariant *)*out) = QVariant::fromValue(list->at(val)); + if (list->count() <= val) *((QVariant *)*out) = QVariant(); + else *((QVariant *)*out) = QVariant::fromValue(list->at(val)); break; } return 0; |