Explorar o código

* fixed a bug in resolving external references for classtree and whatever else
uses findelement.

A reference was checked against TPasModule with "=", ruling out descendants
like TPasExternalModule. All "content" (.xct) symbols are in externalmodules

git-svn-id: trunk@24277 -

marco %!s(int64=12) %!d(string=hai) anos
pai
achega
3acd49ddbc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/fpdoc/dglobals.pp

+ 1 - 1
utils/fpdoc/dglobals.pp

@@ -1177,7 +1177,7 @@ begin
     for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
     begin
       Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
-      if Module.ClassType = TPasModule then
+      if Module.ClassType.InheritsFrom(TPasModule) then
       begin
         Result := FindInModule(TPasModule(Module), AName);
         if Assigned(Result) then