ide: fix crash on opening new unit which lazarus decides as a project unit

git-svn-id: trunk@24457 -
This commit is contained in:
paul 2010-04-06 01:55:23 +00:00
parent 0122b4d687
commit 903275fc98

View File

@ -8588,7 +8588,10 @@ begin
if AEditorInfo <> nil then
NewEditorInfo := AEditorInfo
else
NewEditorInfo := NewUnitInfo.GetClosedOrNewEditorInfo;
if NewUnitInfo <> nil then
NewEditorInfo := NewUnitInfo.GetClosedOrNewEditorInfo
else
NewEditorInfo := nil;
if Handled then exit;
end;