codetools: TCTDirectoryCache.FindUnitSourceInCompletePath: fixed fixing unitname case from cache

git-svn-id: trunk@28921 -
This commit is contained in:
mattias 2011-01-09 13:29:09 +00:00
parent 39a85ba046
commit 564a8a78a9

View File

@ -1030,6 +1030,9 @@ begin
end;
{$ENDIF}
end;
AddToCache(UnitSrc,AUnitName,Result);
end;
if Result<>'' then begin
// improve unit name
NewUnitName:=ExtractFileNameOnly(Result);
@ -1037,9 +1040,6 @@ begin
and (AUnitName<>NewUnitName) then
AUnitName:=NewUnitName;
end;
AddToCache(UnitSrc,AUnitName,Result);
end;
end;
//DebugLn('TCTDirectoryCache.FindUnitSourceInCompletePath RESULT AUnitName="',AUnitName,'" InFilename="',InFilename,'" Result=',Result);
end;