* BUG: Prevent Container.FindChild() from returning the container it applies to.

[GB.QT5]
* BUG: Prevent Container.FindChild() from returning the container it applies to.


git-svn-id: svn://localhost/gambas/trunk@7665 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-03-25 14:48:17 +00:00
parent 625888d44d
commit 4a834861f0

View file

@ -1342,7 +1342,7 @@ BEGIN_METHOD(Container_FindChild, GB_INTEGER x; GB_INTEGER y)
if (w->geometry().contains(VARG(x), VARG(y)))
{
control = CWidget::get(w);
if (control)
if (control && control != THIS)
{
GB.ReturnObject(control);
return;