mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-24 10:48:11 +02:00
wiki: Fix PageHistory in wikisearchdemo.
git-svn-id: trunk@49436 -
This commit is contained in:
parent
8ab80a7904
commit
c65d9574ef
@ -611,10 +611,9 @@ begin
|
||||
end;
|
||||
end else if Anchor<>'' then begin
|
||||
// same page
|
||||
// PageIpHtmlPanel.MakeAnchorVisible(Anchor+'/'); // ipHTML stores anchor names with / at end
|
||||
PageIpHtmlPanel.MakeAnchorVisible(Anchor); // ... not any longer, fixed in r49421
|
||||
end else begin
|
||||
exit;
|
||||
// PageIpHtmlPanel.MakeAnchorVisible(Anchor+'/'); // ipHTML stores anchor names with / at end
|
||||
PageIpHtmlPanel.MakeAnchorVisible(Anchor); // ... not any longer, fixed in r49421
|
||||
FPageAnchor := Anchor;
|
||||
end;
|
||||
if AddToHistory and (FPageDocumentName<>'') then begin
|
||||
PageHistory.AddAfterCurrent(FPageDocumentName,FPageAnchor,FPageTitle);
|
||||
@ -654,9 +653,9 @@ begin
|
||||
NewHTML:=TIpHtml.Create; // Beware: Will be freed automatically by IpHtmlPanel
|
||||
Target.SetHtml(NewHTML);
|
||||
NewHTML.LoadFromStream(aStream);
|
||||
// ToDo: fix TIpHtmlNodeA.MakeVisible, the areas are all 0,0,0,0 at this time
|
||||
if Anchor<>'' then
|
||||
Target.MakeAnchorVisible(Anchor+'/'); // ipHTML stores anchor names with / at end
|
||||
//Target.MakeAnchorVisible(Anchor+'/'); // ipHTML stores anchor names with / at end
|
||||
Target.MakeAnchorVisible(Anchor); // ... not any longer, fixed in r49421
|
||||
except
|
||||
on E: Exception do begin
|
||||
debugln(['TWikiSearchDemoForm.LoadHTML ',E.Message]);
|
||||
|
Loading…
Reference in New Issue
Block a user