Преглед изворни кода

* Fix expandall

git-svn-id: trunk@3677 -
daniel пре 19 година
родитељ
комит
ea5aad0abb
1 измењених фајлова са 6 додато и 2 уклоњено
  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;