codetools: fixed wrong tool context in FindClassNodeForLFMObject

git-svn-id: trunk@13598 -
This commit is contained in:
mattias 2008-01-02 23:35:25 +00:00
parent 0c7e0c2a9b
commit a7dbaa80d2

View File

@ -1750,7 +1750,7 @@ var
Params.SetIdentifier(StartTool,Identifier,nil);
try
Params.Save(OldInput);
if FindIdentifierInContext(Params) then begin
if StartTool.FindIdentifierInContext(Params) then begin
Params.Load(OldInput,true);
Result:=Params.NewCodeTool.FindBaseTypeOfNode(Params,Params.NewNode);
if (Result.Node=nil) or (Result.Node.Desc<>ctnClass) then