mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-07 13:37:44 +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;
|
end;
|
||||||
if InFrontOfNode<>nil then begin
|
if InFrontOfNode<>nil then begin
|
||||||
// insert in front
|
// insert in front
|
||||||
Indent:=GetLineIndent(Src,Node.StartPos);
|
Indent:=GetLineIndent(Src,InFrontOfNode.StartPos);
|
||||||
InsertPos:=FindLineEndOrCodeInFrontOfPosition(Node.StartPos);
|
InsertPos:=FindLineEndOrCodeInFrontOfPosition(InFrontOfNode.StartPos);
|
||||||
end else begin
|
end else begin
|
||||||
Node:=FindMainUsesSection(false);
|
Node:=FindMainUsesSection(false);
|
||||||
if Node<>nil then begin
|
if Node<>nil then begin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user