From 9ef9c85f353eaf942aa9359d8df079170eac0f4d Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 10 Nov 2023 18:23:12 +0100 Subject: [PATCH] ide: fixed FindSourceFile fsfUseIncludePaths, patch by Domingo --- ide/sourcefilemanager.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/sourcefilemanager.pas b/ide/sourcefilemanager.pas index 8e236ef25b..9a2f6429fb 100644 --- a/ide/sourcefilemanager.pas +++ b/ide/sourcefilemanager.pas @@ -3145,7 +3145,7 @@ begin else SearchPath:=CodeToolBoss.GetIncludePathForDirectory(BaseDir); SearchPath:=TrimSearchPath(SearchPath,BaseDir); - if SearchInPath(StartUnitPath,AFilename,Result) then exit; + if SearchInPath(SearchPath,AFilename,Result) then exit; if not(fsfSkipPackages in Flags) then begin // search include file in source directories of all required packages