Converter: fixed access violation (bug #7503)

git-svn-id: trunk@10269 -
This commit is contained in:
vincents 2006-12-01 08:47:19 +00:00
parent a4f24ffb45
commit 93cdf93327

View File

@ -583,8 +583,10 @@ begin
if not FileExists(DOFFilename) then exit(mrOk);
if AProjPkg is TProject then begin
AProject:=TProject(AProjPkg);
APackage:=nil;
CompOpts:=AProject.CompilerOptions;
end else if AProjPkg is TLazPackage then begin
AProject:=nil;
APackage:=TLazPackage(AProjPkg);
CompOpts:=APackage.CompilerOptions;
end else