From f736aee2697a5b1d9efe029732b2bea042be9729 Mon Sep 17 00:00:00 2001 From: juha Date: Tue, 24 Mar 2015 17:52:34 +0000 Subject: [PATCH] CodeHelp: Check for FPDocFile.Filename instead of Path which was not initialized. git-svn-id: trunk@48482 - --- ide/codehelp.pas | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ide/codehelp.pas b/ide/codehelp.pas index feb0ecc763..1b4ade4ec9 100644 --- a/ide/codehelp.pas +++ b/ide/codehelp.pas @@ -1838,11 +1838,8 @@ begin AProject:=LazarusIDE.ActiveProject; // virtual files belong to the project - // ToDo: Path is not initialized! - if not FilenameIsAbsolute(Path) then begin - Result:=AProject; - exit; - end; + if not FilenameIsAbsolute(FPDocFile.Filename) then + exit(AProject); // check if in the doc path of the project if (AProject<>nil) and (AProject.FPDocPaths<>'')