mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
codetools: identifier completion: fixed crash
git-svn-id: trunk@41263 -
This commit is contained in:
parent
53b20cfa97
commit
f7647f0574
@ -1133,11 +1133,10 @@ begin
|
||||
begin
|
||||
Ident:=FoundContext.Tool.GetProcNameIdentifier(FoundContext.Node);
|
||||
NewItem := CurrentIdentifierList.FindIdentifier(Ident);
|
||||
if Assigned(NewItem) then
|
||||
begin
|
||||
if (NewItem<>nil) and (NewItem.Tool<>nil) then begin
|
||||
if (Lvl > NewItem.Level + 1)
|
||||
or (Lvl <> NewItem.Level) and not NewItem.Tool.ProcNodeHasSpecifier(NewItem.Node, psOVERLOAD)
|
||||
then Ident := nil; // there is previous declaration whitout 'overload'
|
||||
or ((Lvl <> NewItem.Level) and not NewItem.Tool.ProcNodeHasSpecifier(NewItem.Node, psOVERLOAD))
|
||||
then Ident := nil; // there is a previous declaration without 'overload'
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user