From d20832fd742a869677d561ab11b355a5c5c7f3b3 Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 31 Oct 2020 16:46:18 +0100 Subject: [PATCH] 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. --- gb.gtk/src/gcontrol.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gb.gtk/src/gcontrol.cpp b/gb.gtk/src/gcontrol.cpp index 837184c4f..1b53f2e9f 100644 --- a/gb.gtk/src/gcontrol.cpp +++ b/gb.gtk/src/gcontrol.cpp @@ -2527,7 +2527,10 @@ void gControl::reparent(gContainer *newpr, int x, int y) return; if (pr == newpr && pr->getContainer() == newpr->getContainer()) + { + move(x, y); return; + } if (was_visible) hide(); //gtk_widget_unrealize(border);