codetools: fixed identifier completion in top level node

git-svn-id: trunk@19797 -
This commit is contained in:
mattias 2009-05-04 11:47:10 +00:00
parent b41d00e4e3
commit 9f6417e73c

View File

@ -1410,7 +1410,9 @@ begin
GatherContext.Node:=GatherContext.Node.Parent;
end
else if (GatherContext.Node.Desc=ctnClassInheritance)
or (GatherContext.Node.Parent.Desc=ctnClassInheritance) then begin
or ((GatherContext.Node.Parent<>nil)
and (GatherContext.Node.Parent.Desc=ctnClassInheritance))
then begin
while not (GatherContext.Node.Desc in [ctnClass,ctnClassInterface]) do
GatherContext.Node:=GatherContext.Node.Parent;
GatherContext.Node:=GatherContext.Node.Parent;