+ Fixed error which stopped code from compiling

git-svn-id: trunk@6970 -
This commit is contained in:
michael 2005-03-16 21:22:43 +00:00
parent 49b530b12a
commit 86803e5b23

View File

@ -165,7 +165,7 @@ begin
Node:=GetNodeAt(X, Y);
if Assigned(Node) and Assigned(Node.Data) then begin
AnObject:=TObject(Node.Data);
if AnObject is TWinControl and (csAcceptsControls in TWinControl(AnObject).ControlStyle) then
if (AnObject is TWinControl) and (csAcceptsControls in TWinControl(AnObject).ControlStyle) then
begin
AContainer := TWinControl(AnObject);
AcceptContainer := True;