IDE: fixed crash

git-svn-id: trunk@40361 -
This commit is contained in:
mattias 2013-02-21 13:05:55 +00:00
parent d79e1a4d79
commit 70fb9b8f5e

View File

@ -334,7 +334,8 @@ function TMainIDEBase.BeginCodeTool(ADesigner: TDesigner;
Flags: TCodeToolsFlags): boolean; Flags: TCodeToolsFlags): boolean;
begin begin
Result:=false; 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; ActiveUnitInfo := Project1.EditorInfoWithEditorComponent(ActiveSrcEdit).UnitInfo;
end end
else begin else begin