summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcompiler.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-11-03 09:14:58 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-11-03 09:14:58 (GMT)
commitd5c34887e0a563511ff124b497e5e869a64cda34 (patch)
treef4487349557fa5d085ce1ffe304f41798ebf7fa0 /src/declarative/qml/qmlcompiler.cpp
parent1cb4f7af901aab2d774731183123cd898561b13a (diff)
downloadQt-d5c34887e0a563511ff124b497e5e869a64cda34.zip
Qt-d5c34887e0a563511ff124b497e5e869a64cda34.tar.gz
Qt-d5c34887e0a563511ff124b497e5e869a64cda34.tar.bz2
Fix incorrect assert
QT-2432
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r--src/declarative/qml/qmlcompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index b93a9b3..3253e72 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -2366,7 +2366,7 @@ bool QmlCompiler::buildBinding(QmlParser::Value *value,
QmlParser::Property *prop,
const BindingContext &ctxt)
{
- Q_ASSERT(prop->index);
+ Q_ASSERT(prop->index != -1);
Q_ASSERT(prop->parent);
Q_ASSERT(prop->parent->metaObject());