IDE: codebrowser: ignore links without code

git-svn-id: trunk@38587 -
This commit is contained in:
mattias 2012-09-08 20:39:19 +00:00
parent 98c758d90d
commit 0108bc7d1f

View File

@ -1649,6 +1649,7 @@ procedure TCodeBrowserView.WorkUpdateUnit(AnUnit: TCodeBrowserUnit);
for i:=0 to Tool.Scanner.LinkCount-1 do begin
Link:=Tool.Scanner.Links[i];
CodeBuf:=TCodeBuffer(Link.Code);
if CodeBuf=nil then continue;
if CodeBuf<>LastCode then begin
inc(LineCnt,CodeBuf.LineCount);
inc(ByteCnt,CodeBuf.SourceLength);