diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-02-10 21:00:49 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-17 08:49:04 +0100 |
commit | f3776e34c6dc0f85210396e986a1af9b7ab1218d (patch) | |
tree | fa5f2c0595e2a4fb2c458a5afeb32952a254a80f /src/qml/compiler/qqmlcodegenerator.cpp | |
parent | 9aaf693e40616943c64c4c60637251bd2e940e69 (diff) |
[new compiler] Fix location of id property in error messages
Change-Id: If7cde17acb1dd63a51e2e31415533a21302d8b41
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qqmlcodegenerator.cpp')
-rw-r--r-- | src/qml/compiler/qqmlcodegenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qqmlcodegenerator.cpp b/src/qml/compiler/qqmlcodegenerator.cpp index f933465100..57b7bb53df 100644 --- a/src/qml/compiler/qqmlcodegenerator.cpp +++ b/src/qml/compiler/qqmlcodegenerator.cpp @@ -1059,8 +1059,8 @@ bool QQmlCodeGenerator::setId(const AST::SourceLocation &idLocation, AST::Statem COMPILE_EXCEPTION(idLocation, tr("Property value set multiple times")); _object->idIndex = registerString(idQString); - _object->locationOfIdProperty.line = loc.startLine; - _object->locationOfIdProperty.column = loc.startColumn; + _object->locationOfIdProperty.line = idLocation.startLine; + _object->locationOfIdProperty.column = idLocation.startColumn; return true; } |