mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 01:49:11 +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
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user