mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 14:59:15 +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;
|
||||
|
||||
fNewURL := NewURL;
|
||||
if Pos('ms-its:', NewURL) = 1 then
|
||||
Exit;
|
||||
if OldURL = '' then
|
||||
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);
|
||||
RemoveDirCount := 0;
|
||||
|
Loading…
Reference in New Issue
Block a user