mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 01:39:18 +02:00
IDE help: fixed crash on F1 when in source editor and not on a identifier
git-svn-id: trunk@13343 -
This commit is contained in:
parent
e885fe00fe
commit
694ebf28a7
@ -685,9 +685,9 @@ function THelpManager.ShowHelpForSourcePosition(const Filename: string;
|
||||
if CodeToolBoss.FindDeclarationAndOverload(CodeBuffer,CodePos.X,CodePos.Y,
|
||||
ListOfPCodeXYPosition,[fdlfWithoutEmptyProperties,fdlfWithoutForwards])
|
||||
then begin
|
||||
if ListOfPCodeXYPosition=nil then exit;
|
||||
debugln('THelpManager.ShowHelpForSourcePosition B Success ',dbgs(ListOfPCodeXYPosition.Count));
|
||||
// convert the source positions in pascal help context list
|
||||
if ListOfPCodeXYPosition=nil then exit;
|
||||
for i:=0 to ListOfPCodeXYPosition.Count-1 do begin
|
||||
CurCodePos:=PCodeXYPosition(ListOfPCodeXYPosition[i]);
|
||||
debugln('THelpManager.ShowHelpForSourcePosition C ',CurCodePos^.Code.Filename,' X=',dbgs(CurCodePos^.X),' Y=',dbgs(CurCodePos^.Y));
|
||||
|
Loading…
Reference in New Issue
Block a user