Commit d89f4770 authored by Olivier Goffart's avatar Olivier Goffart
Browse files

qmljsinspector: use the columnNumber as well as the lineNumber to locate...

qmljsinspector: use the columnNumber as well as the lineNumber to locate QDeclarativeDebugObjectReference
parent 25b86926
......@@ -603,7 +603,7 @@ void MapObjectWithDebugReference::processRecursive(const QDeclarativeDebugObject
// the QDeclarativeDebugObjectReference by filename/loc in a fist pass
SourceLocation loc = ast->firstSourceLocation();
if (object.source().lineNumber() == int(loc.startLine) && object.source().url().toLocalFile() == filename) {
if (object.source().lineNumber() == int(loc.startLine) && object.source().columnNumber() == int(loc.startColumn) && object.source().url().toLocalFile() == filename) {
result[ast] += object;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment