codetools: FindMissingUnit: FixCase fixed

git-svn-id: trunk@28901 -
This commit is contained in:
mattias 2011-01-08 11:43:32 +00:00
parent 27512bc4dd
commit 599efccf86

View File

@ -1525,7 +1525,8 @@ function TStandardCodeTool.FindMissingUnits(var MissingUnits: TStrings;
s:=s+' in '''+NewInFilename+'''';
if AFilename<>'' then begin
// unit found
if (NewUnitName<>OldUnitName) or (NewInFilename<>OldInFilename) then
if FixCase
and ((NewUnitName<>OldUnitName) or (NewInFilename<>OldInFilename)) then
begin
// fix case
FromPos:=UnitNameAtom.StartPos;