[new compiler] Fix error location for run-time binding errors
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 24 Feb 2014 15:35:20 +0000 (16:35 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 2 Mar 2014 13:48:31 +0000 (14:48 +0100)
We should point to the expression itself, not to the property.

Change-Id: I1d5b7dd80f7865076852228985717f79ceb79134
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp

index d1a84b7..f11b383 100644 (file)
@@ -754,7 +754,7 @@ bool QQmlObjectCreator::setPropertyBinding(QQmlPropertyData *property, const QV4
             bs->takeExpression(expr);
         } else {
             QQmlBinding *qmlBinding = new QQmlBinding(function, _scopeObject, context,
-                                                      context->urlString, binding->location.line, binding->location.column);
+                                                      context->urlString, binding->valueLocation.line, binding->valueLocation.column);
 
             // When writing bindings to grouped properties implemented as value types,
             // such as point.x: { someExpression; }, then the binding is installed on