From: Aaron Kennedy Date: Tue, 18 Oct 2011 03:19:57 +0000 (+1000) Subject: Fix assert X-Git-Tag: qt-v5.0.0-alpha1~1353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff61ed1d85ad78445e502e40bda9678dccb53fcf;p=profile%2Fivi%2Fqtdeclarative.git Fix assert Change-Id: I6db293c278f10be7e998ed15fe93b9d328474e6a Reviewed-by: Martin Jones Reviewed-by: Aaron Kennedy --- diff --git a/src/declarative/qml/qdeclarativeproperty.cpp b/src/declarative/qml/qdeclarativeproperty.cpp index a402d24..7a43ef1 100644 --- a/src/declarative/qml/qdeclarativeproperty.cpp +++ b/src/declarative/qml/qdeclarativeproperty.cpp @@ -1301,7 +1301,7 @@ bool QDeclarativePropertyPrivate::writeBinding(QObject *object, WriteFlags flags) { Q_ASSERT(object); - Q_ASSERT(core.coreIndex); + Q_ASSERT(core.coreIndex != -1); QDeclarativeContextData *context = expression->context(); QDeclarativeEngine *engine = context->engine;