mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 10:35:58 +02:00
parent
466edbbd14
commit
285dbf5846
@ -1360,7 +1360,7 @@ function TPascalReaderTool.FindMainBeginEndNode: TCodeTreeNode;
|
||||
begin
|
||||
Result:=Tree.Root;
|
||||
if (Result=nil) then exit;
|
||||
if (Result.Desc=ctnProgram) then
|
||||
if (Result.Desc in [ctnProgram,ctnLibrary]) then
|
||||
Result:=Result.LastChild
|
||||
else begin
|
||||
Result:=FindImplementationNode;
|
||||
|
Loading…
Reference in New Issue
Block a user