mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 05:58:14 +02:00
* Fixed using topic id instead of context id
git-svn-id: trunk@30857 -
This commit is contained in:
parent
f7ef16776e
commit
f6b299e26a
@ -986,8 +986,7 @@ var
|
||||
FileIndex: Integer;
|
||||
LoadTOC: Boolean;
|
||||
CurCHM: TChmReader;
|
||||
ContextURL,
|
||||
ContextTitle: String;
|
||||
ContextURL: String;
|
||||
begin
|
||||
Result := False;
|
||||
fFile := Copy(AUrl,8, Length(AURL));
|
||||
@ -1016,7 +1015,7 @@ begin
|
||||
// AContext will override the url if it is found
|
||||
if AContext <> -1 then
|
||||
begin
|
||||
ContextURL := CurCHM.LookupTopicByID(AContext, ContextTitle);
|
||||
ContextURL := CurCHM.GetContextUrl(AContext);
|
||||
if (Length(ContextURL) > 0) and not (ContextURL[1] in ['/', '\']) then
|
||||
Insert('/', ContextURL , 1);
|
||||
if Length(ContextURL) > 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user