Applied patch from Vincent Snijders

git-svn-id: trunk@4732 -
This commit is contained in:
marc 2003-10-24 21:34:36 +00:00
parent 9077473f14
commit 6526725baa

View File

@ -2591,8 +2591,12 @@ begin
// get all usage options
AddOptionsList:=GetUsageOptionsList(PkgList);
PkgList.Free;
// combine options of same type
GatherInheritedOptions(AddOptionsList,InheritedOptionStrings);
if AddOptionsList<>nil then begin
// combine options of same type
GatherInheritedOptions(AddOptionsList,InheritedOptionStrings);
AddOptionsList.Free;
end;
// convert options to compiler parameters
Result:=InheritedOptionsToCompilerParameters(InheritedOptionStrings,[]);