mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 05:36:22 +02:00
chmhelp: fixed lazarus dir
git-svn-id: trunk@30802 -
This commit is contained in:
parent
8c4dbe5aaa
commit
47ea4a4ac4
@ -78,8 +78,9 @@ procedure TLangRefHelpDatabase.LoadKeywordList(Path: string);
|
||||
begin
|
||||
if Path = '' then
|
||||
begin
|
||||
Path := { TODO : FixSlash }('$(LazarusDir)/docs/html/');
|
||||
Path := '$(LazarusDir)';
|
||||
IDEMacros.SubstituteMacros(Path);
|
||||
Path := AppendPathDelim(Path) + 'docs' + PathDelim + 'html';
|
||||
end;
|
||||
Path := AppendPathDelim(Path);
|
||||
|
||||
@ -122,6 +123,7 @@ begin
|
||||
if SameText(KeyWord, 'for') or SameText(KeyWord, 'in') then
|
||||
begin
|
||||
i := FKeyWordsList.IndexOfName('forin');
|
||||
if i < 0 then Exit;
|
||||
KeywordNode := THelpNode.CreateURL(Self,KeyWord,'ref.chm://ref/' + FKeyWordsList.ValueFromIndex[i]);
|
||||
KeywordNode.Title := 'Pascal keyword "for..in"';
|
||||
FKeywordNodes.Add(KeywordNode);
|
||||
|
Loading…
Reference in New Issue
Block a user