mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 23:59:32 +01:00
codetools: fixed crash in TCodeCompletionCodeTool.AddProcedureCompatibleToProcType, bug #21271
git-svn-id: trunk@35951 -
This commit is contained in:
parent
3565bdf474
commit
065b887ee3
@ -1261,8 +1261,8 @@ begin
|
||||
end;
|
||||
if InFrontOfNode<>nil then begin
|
||||
// insert in front
|
||||
Indent:=GetLineIndent(Src,Node.StartPos);
|
||||
InsertPos:=FindLineEndOrCodeInFrontOfPosition(Node.StartPos);
|
||||
Indent:=GetLineIndent(Src,InFrontOfNode.StartPos);
|
||||
InsertPos:=FindLineEndOrCodeInFrontOfPosition(InFrontOfNode.StartPos);
|
||||
end else begin
|
||||
Node:=FindMainUsesSection(false);
|
||||
if Node<>nil then begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user