mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 20:21:04 +02:00
CodeTools: Fixing compilation of the addclass.lpi example (continued 2f643bd4
)
This commit is contained in:
parent
d4d817e7af
commit
48b22a8acf
@ -57,7 +57,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
SourceChangeCache:=CodeToolBoss.SourceChangeCache;
|
SourceChangeCache:=CodeToolBoss.SourceChangeCache;
|
||||||
// find a nice insert position (behind the uses section)
|
// find a nice insert position (behind the uses section)
|
||||||
UsesSection:=Tool.FindMainUsesSection(false);
|
UsesSection:=Tool.FindMainUsesNode(false);
|
||||||
InsertPos:=UsesSection.EndPos;
|
InsertPos:=UsesSection.EndPos;
|
||||||
// use the same indentation as the start of the uses section
|
// use the same indentation as the start of the uses section
|
||||||
Indent:=GetLineIndent(Tool.Src,UsesSection.StartPos);
|
Indent:=GetLineIndent(Tool.Src,UsesSection.StartPos);
|
||||||
|
Loading…
Reference in New Issue
Block a user