mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 16:31:40 +02:00
IDE: fixed crash on testing compiler options
git-svn-id: trunk@20541 -
This commit is contained in:
parent
b4c8f1486d
commit
bc74b86f6c
@ -963,9 +963,9 @@ begin
|
||||
UnitName:=ExtractFileNameOnly(PPUFilename);
|
||||
// search .pas/.pp/.p file
|
||||
if SearchPascalUnitInPath(UnitName,'',SrcPath,';',ctsfcAllCase)<>'' then
|
||||
PPUFiles.Delete(i);
|
||||
PPUFiles.Delete(i)
|
||||
// check for main source
|
||||
if (Options.Owner is TLazProject) then begin
|
||||
else if (Options.Owner is TLazProject) then begin
|
||||
CurProject:=TLazProject(Options.Owner);
|
||||
if (CurProject.MainFileID>=0) then begin
|
||||
ProjFile:=CurProject.MainFile;
|
||||
|
Loading…
Reference in New Issue
Block a user