aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcompiler.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-10 21:15:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-18 10:01:48 +0100
commit3c0bf1c0a8fe80f75f9e9194637c86726d156c82 (patch)
tree7a4ce1ab2cf8d44d960168f4ee25287024c000c0 /src/qml/qml/qqmlcompiler.cpp
parenta65b8785621ebf58f34eb0c1759376fc0a1117c7 (diff)
[new compiler] Fix error reporting null object group property access
The new code path reported line and column, the latter was missing from the old code path and is easily added. Change-Id: I730e56f0fe4e99091dfb10e5f601faf1d3b8949c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler.cpp')
-rw-r--r--src/qml/qml/qqmlcompiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp
index 9262e2a119..c71c7432a8 100644
--- a/src/qml/qml/qqmlcompiler.cpp
+++ b/src/qml/qml/qqmlcompiler.cpp
@@ -1379,6 +1379,7 @@ void QQmlCompiler::genObjectBody(QQmlScript::Object *obj)
Instruction::FetchObject fetch;
fetch.property = prop->index;
fetch.line = prop->location.start.line;
+ fetch.column = prop->location.start.column;
output->addInstruction(fetch);
if (!prop->value->synthdata.isEmpty()) {