codetools: fixed usesgraph addtargetunit

git-svn-id: trunk@60158 -
This commit is contained in:
mattias 2019-01-23 10:12:18 +00:00
parent 55867b798a
commit 4e3c76a735

View File

@ -342,7 +342,7 @@ var
NewUnit: TUGUnit;
begin
if ExpFilename='' then exit;
if FQueuedFiles.FindKey(PChar(ExpFilename),@CompareFilenameAndUGUnit)<>nil then
if FTargetFiles.FindKey(PChar(ExpFilename),@CompareFilenameAndUGUnit)<>nil then
exit; // already a start file
// add to FFiles and FTargetFiles
//debugln(['TUsesGraph.AddTargetUnit ',ExpFilename]);