CodeHelp: Check for FPDocFile.Filename instead of Path which was not initialized.

git-svn-id: trunk@48482 -
This commit is contained in:
juha 2015-03-24 17:52:34 +00:00
parent abe573b42d
commit f736aee269

View File

@ -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<>'')