From b76bd09d132d94089c793754cfd6cd66c831dbdf Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 24 Feb 2012 20:14:11 +0000 Subject: [PATCH] Use Tree.CheckState[Node], not Node.CheckState to fix a potential OnCheck event. Fixes issue #2738. --- source/tabletools.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tabletools.pas b/source/tabletools.pas index c5a494b1..084ed4e1 100644 --- a/source/tabletools.pas +++ b/source/tabletools.pas @@ -1524,9 +1524,9 @@ begin ObjNode.CheckState := csUncheckedNormal else begin if (WantedType = lntNone) or (DBObj.NodeType = WantedType) then - ObjNode.CheckState := csCheckedNormal + TreeObjects.CheckState[ObjNode] := csCheckedNormal else - ObjNode.CheckState := csUncheckedNormal; + TreeObjects.CheckState[ObjNode] := csUncheckedNormal; end; if ObjNode.CheckState = csCheckedNormal then Inc(CheckedNodes);