mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-21 23:22:41 +02:00
ideintf: don't allow to drop controls on a parent which does not support that child class (part of bug #0010378)
git-svn-id: trunk@18187 -
This commit is contained in:
parent
ed6e13b21e
commit
c84347984e
@ -195,9 +195,10 @@ begin
|
||||
while Assigned(Node) do
|
||||
begin
|
||||
AnObject := TObject(Node.Data);
|
||||
AcceptControl := AcceptControl and (AnObject is TControl);
|
||||
AcceptControl := AcceptControl and (AnObject is TControl) and
|
||||
AContainer.CheckChildClassAllowed(AnObject.ClassType, False);
|
||||
// Check if one of the parent of the container is the control itself
|
||||
if AcceptControl and AcceptContainer then
|
||||
if AcceptControl then
|
||||
begin
|
||||
while Assigned(AContainer) do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user