summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvmemetaobject.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-12 09:48:55 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-12 09:48:55 (GMT)
commit2b58621aebf345593f9a277b2ae8dad5aebe0ac1 (patch)
tree3999c26402fc0b16f729b054a48dc3582b4d111b /src/declarative/qml/qmlvmemetaobject.cpp
parentb5a10e17fcd9687dc009416ba2b3d8c91541aa15 (diff)
downloadQt-2b58621aebf345593f9a277b2ae8dad5aebe0ac1.zip
Qt-2b58621aebf345593f9a277b2ae8dad5aebe0ac1.tar.gz
Qt-2b58621aebf345593f9a277b2ae8dad5aebe0ac1.tar.bz2
Incorrect ASSERT
Diffstat (limited to 'src/declarative/qml/qmlvmemetaobject.cpp')
-rw-r--r--src/declarative/qml/qmlvmemetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlvmemetaobject.cpp b/src/declarative/qml/qmlvmemetaobject.cpp
index c863ffd..0886f1a 100644
--- a/src/declarative/qml/qmlvmemetaobject.cpp
+++ b/src/declarative/qml/qmlvmemetaobject.cpp
@@ -333,7 +333,7 @@ QScriptValue QmlVMEMetaObject::vmeMethod(int index)
return static_cast<QmlVMEMetaObject *>(parent)->vmeMethod(index);
}
int plainSignals = metaData->signalCount + metaData->propertyCount + metaData->aliasCount;
- Q_ASSERT(index >= (methodOffset + plainSignals) && index < (methodOffset + metaData->methodCount));
+ Q_ASSERT(index >= (methodOffset + plainSignals) && index < (methodOffset + plainSignals + metaData->methodCount));
return method(index - methodOffset - plainSignals);
}