From 694ebf28a7b81c6a4b7a80644dac4b4bddba1d3e Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 15 Dec 2007 14:16:34 +0000 Subject: [PATCH] IDE help: fixed crash on F1 when in source editor and not on a identifier git-svn-id: trunk@13343 - --- ide/helpmanager.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/helpmanager.pas b/ide/helpmanager.pas index 8604809f56..ce324d153a 100644 --- a/ide/helpmanager.pas +++ b/ide/helpmanager.pas @@ -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));