Control.Reparent() correctly moves the control if the parent is not changed.

[GB.GTK]
* BUG: Control.Reparent() correctly moves the control if the parent is not changed.

[GB.GTK3]
* BUG: Control.Reparent() correctly moves the control if the parent is not changed.
This commit is contained in:
gambas 2020-10-31 16:46:18 +01:00
parent 8e91ff071a
commit d20832fd74

View file

@ -2527,7 +2527,10 @@ void gControl::reparent(gContainer *newpr, int x, int y)
return; return;
if (pr == newpr && pr->getContainer() == newpr->getContainer()) if (pr == newpr && pr->getContainer() == newpr->getContainer())
{
move(x, y);
return; return;
}
if (was_visible) hide(); if (was_visible) hide();
//gtk_widget_unrealize(border); //gtk_widget_unrealize(border);