chmhelp: fixed lazarus dir

git-svn-id: trunk@30802 -
This commit is contained in:
mattias 2011-05-18 18:59:55 +00:00
parent 8c4dbe5aaa
commit 47ea4a4ac4

View File

@ -78,8 +78,9 @@ procedure TLangRefHelpDatabase.LoadKeywordList(Path: string);
begin begin
if Path = '' then if Path = '' then
begin begin
Path := { TODO : FixSlash }('$(LazarusDir)/docs/html/'); Path := '$(LazarusDir)';
IDEMacros.SubstituteMacros(Path); IDEMacros.SubstituteMacros(Path);
Path := AppendPathDelim(Path) + 'docs' + PathDelim + 'html';
end; end;
Path := AppendPathDelim(Path); Path := AppendPathDelim(Path);
@ -122,6 +123,7 @@ begin
if SameText(KeyWord, 'for') or SameText(KeyWord, 'in') then if SameText(KeyWord, 'for') or SameText(KeyWord, 'in') then
begin begin
i := FKeyWordsList.IndexOfName('forin'); i := FKeyWordsList.IndexOfName('forin');
if i < 0 then Exit;
KeywordNode := THelpNode.CreateURL(Self,KeyWord,'ref.chm://ref/' + FKeyWordsList.ValueFromIndex[i]); KeywordNode := THelpNode.CreateURL(Self,KeyWord,'ref.chm://ref/' + FKeyWordsList.ValueFromIndex[i]);
KeywordNode.Title := 'Pascal keyword "for..in"'; KeywordNode.Title := 'Pascal keyword "for..in"';
FKeywordNodes.Add(KeywordNode); FKeywordNodes.Add(KeywordNode);