mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 21:58:23 +02:00
IDE: fixed crash
git-svn-id: trunk@40361 -
This commit is contained in:
parent
d79e1a4d79
commit
70fb9b8f5e
@ -334,7 +334,8 @@ function TMainIDEBase.BeginCodeTool(ADesigner: TDesigner;
|
||||
Flags: TCodeToolsFlags): boolean;
|
||||
begin
|
||||
Result:=false;
|
||||
if (ctfUseGivenSourceEditor in Flags) and (Project1<>nil) then begin
|
||||
if (ctfUseGivenSourceEditor in Flags) and (Project1<>nil)
|
||||
and (ActiveSrcEdit<>nil) then begin
|
||||
ActiveUnitInfo := Project1.EditorInfoWithEditorComponent(ActiveSrcEdit).UnitInfo;
|
||||
end
|
||||
else begin
|
||||
|
Loading…
Reference in New Issue
Block a user