mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 18:21:26 +02:00
LHelp: Fix crash after clicking at an internal link in toc tree / index list
git-svn-id: trunk@49425 -
This commit is contained in:
parent
58068b3e1c
commit
e5230eb26e
@ -181,8 +181,15 @@ begin
|
|||||||
Result := NewURL;
|
Result := NewURL;
|
||||||
|
|
||||||
fNewURL := NewURL;
|
fNewURL := NewURL;
|
||||||
if Pos('ms-its:', NewURL) = 1 then
|
if OldURL = '' then
|
||||||
Exit;
|
exit;
|
||||||
|
|
||||||
|
if Pos('ms-its:', NewURL) = 1 then begin
|
||||||
|
if Pos('#', NewURL) = 0 then
|
||||||
|
exit;
|
||||||
|
X := Pos('::', fNewURL);
|
||||||
|
fNewURL := Copy(fNewURL, X+3, MaxInt);
|
||||||
|
end;
|
||||||
|
|
||||||
ParentDirs := GetDirsParents(OldURL);
|
ParentDirs := GetDirsParents(OldURL);
|
||||||
RemoveDirCount := 0;
|
RemoveDirCount := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user