mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 00:02:03 +02:00
CodeHelp: Check for FPDocFile.Filename instead of Path which was not initialized.
git-svn-id: trunk@48482 -
This commit is contained in:
parent
abe573b42d
commit
f736aee269
@ -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<>'')
|
||||
|
Loading…
Reference in New Issue
Block a user