Browse Source

* Fix expandall

git-svn-id: trunk@3677 -
daniel 19 years ago
parent
commit
ea5aad0abb
1 changed files with 6 additions and 2 deletions
  1. 6 2
      fv/outline.pas

+ 6 - 2
fv/outline.pas

@@ -195,8 +195,12 @@ procedure Toutlineviewer.expandall(node:pointer);
 var i:sw_integer;
 
 begin
-  for i:=0 to getnumchildren-1 do
-    expandall(getchild(i));
+  if haschildren(node) then
+    begin
+      for i:=0 to getnumchildren(node)-1 do
+        expandall(getchild(node,i));
+      adjust(node,true);
+    end;
 end;
 
 function Toutlineviewer.firstthat(test:pointer):pointer;