Sfoglia il codice sorgente

* Patch from Mattias Gaertner to check for name when adding elements

git-svn-id: trunk@32728 -
michael 9 anni fa
parent
commit
143acd2497
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      utils/fpdoc/fpdocclasstree.pp

+ 1 - 1
utils/fpdoc/fpdocclasstree.pp

@@ -164,7 +164,7 @@ begin
     begin
     Result:=N as TDomElement
     end
-  else
+  else if AElement.Name<>'' then
     begin // N=NIL, PE might be nil.
     Inc(ACount);
     Result:=FClassTree.CreateElement(AElement.Name);