IDE: designer: fixed change parent for TControl

git-svn-id: trunk@44508 -
This commit is contained in:
mattias 2014-03-24 17:28:29 +00:00
parent 2a1f15b8f5
commit 57685b5e28

View File

@ -3873,8 +3873,8 @@ var
while i>=0 do
begin
CurSelected:=ControlSelection[i];
if CurSelected.IsTWinControl
and (TWinControl(CurSelected.Persistent).Owner=LookupRoot)
if CurSelected.IsTControl
and (TControl(CurSelected.Persistent).Owner=LookupRoot)
then
// this one can be moved
break;