From 5e4238fa7f37631539bbb5bf8140d4bb899e0595 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 3 Mar 2010 23:49:23 +0000 Subject: [PATCH] Minor: Just process initialized nodes in DeInitializeVTNodes(). Can produce AVs otherwise on startup, and makes superfluous loops on non initialized ones. --- source/helpers.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/helpers.pas b/source/helpers.pas index 046a23ca..7c1f78a0 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -2626,10 +2626,10 @@ var begin // Forces a VirtualTree to (re-)initialize its nodes. // I wonder why this is not implemented in VirtualTree. - Node := Sender.GetFirst; + Node := Sender.GetFirstInitialized; while Assigned(Node) do begin Node.States := Node.States - [vsInitialized]; - Node := Sender.GetNext(Node); + Node := Sender.GetNextInitialized(Node); end; end;