codetools: fixed loop in FindEnumInContext

git-svn-id: trunk@48281 -
This commit is contained in:
mattias 2015-03-12 00:41:37 +00:00
parent 76e7197049
commit 5e1973260e

View File

@ -3628,8 +3628,8 @@ begin
exit;
end;
end;
OldContextNode:=Params.ContextNode;
if OldContextNode.FirstChild<>nil then begin
if CurContextNode.FirstChild<>nil then begin
OldContextNode:=Params.ContextNode;
Params.ContextNode:=CurContextNode;
Result:=FindEnumInContext(Params);
Params.ContextNode:=OldContextNode;