IDE: codeexplorer: fixed finding the smallest node for the current cursor, bug

git-svn-id: trunk@34427 -
This commit is contained in:
mattias 2011-12-26 12:38:13 +00:00
parent abcae707c6
commit 180515f92a

View File

@ -2377,7 +2377,7 @@ var
if (Best<>nil) then begin
if (BestEndPos=CleanPos) and (NodeData.EndPos>CleanPos) then begin
// for example a,|b then b is better
end else if BestEndPos-BestStartPos<NodeData.EndPos-NodeData.StartPos then begin
end else if BestEndPos-BestStartPos > NodeData.EndPos-NodeData.StartPos then begin
// smaller range is better
end else
exit;