mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 08:00:34 +02:00
codetools: fixed wrong tool context in FindClassNodeForLFMObject
git-svn-id: trunk@13598 -
This commit is contained in:
parent
0c7e0c2a9b
commit
a7dbaa80d2
@ -1750,7 +1750,7 @@ var
|
|||||||
Params.SetIdentifier(StartTool,Identifier,nil);
|
Params.SetIdentifier(StartTool,Identifier,nil);
|
||||||
try
|
try
|
||||||
Params.Save(OldInput);
|
Params.Save(OldInput);
|
||||||
if FindIdentifierInContext(Params) then begin
|
if StartTool.FindIdentifierInContext(Params) then begin
|
||||||
Params.Load(OldInput,true);
|
Params.Load(OldInput,true);
|
||||||
Result:=Params.NewCodeTool.FindBaseTypeOfNode(Params,Params.NewNode);
|
Result:=Params.NewCodeTool.FindBaseTypeOfNode(Params,Params.NewNode);
|
||||||
if (Result.Node=nil) or (Result.Node.Desc<>ctnClass) then
|
if (Result.Node=nil) or (Result.Node.Desc<>ctnClass) then
|
||||||
|
Loading…
Reference in New Issue
Block a user