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

This commit is contained in:
Olivier Goffart
2010-07-13 15:00:39 +02:00
parent 25b86926c7
commit d89f4770ca

View File

@@ -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;
}