瀏覽代碼

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

git-svn-id: trunk@32728 -
michael 9 年之前
父節點
當前提交
143acd2497
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);