mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:36:09 +02:00
Converter: Fix the return value of MaybeAddPackageDep. (It was not used yet, no bugs caused.)
git-svn-id: trunk@53844 -
This commit is contained in:
parent
f009e795cb
commit
a6975f0f66
@ -651,6 +651,7 @@ end;
|
||||
function TUsedUnitsTool.MaybeAddPackageDep(aUnitName: string): Boolean;
|
||||
// Add a dependency to a package containing the unit and open it.
|
||||
// Called when the unit is not found.
|
||||
// Returns True if a dependency was really added.
|
||||
var
|
||||
s: String;
|
||||
begin
|
||||
@ -658,7 +659,7 @@ begin
|
||||
s:='';
|
||||
if fCTLink.CodeTool.DirectoryCache.FindUnitSourceInCompletePath(aUnitName,s,True) = '' then
|
||||
if Assigned(fOnCheckPackageDependency) then
|
||||
Result := not fOnCheckPackageDependency(aUnitName);
|
||||
Result := fOnCheckPackageDependency(aUnitName);
|
||||
end;
|
||||
|
||||
function TUsedUnitsTool.ConvertUsed: TModalResult;
|
||||
|
Loading…
Reference in New Issue
Block a user