diff --git a/uppsrc/CtrlLib/ArrayCtrl.cpp b/uppsrc/CtrlLib/ArrayCtrl.cpp index 31a66504a..379504e06 100644 --- a/uppsrc/CtrlLib/ArrayCtrl.cpp +++ b/uppsrc/CtrlLib/ArrayCtrl.cpp @@ -659,7 +659,10 @@ void ArrayCtrl::SyncCtrls(int from) CellInfo& ci = cellinfo.At(i).At(j); ci.Set(newctrl.Detach(), true, true); Ctrl& c = ci.GetCtrl(); - AddChild(&c, p); + if(p) + AddChild(&c, p); + else + AddChild(&c); ct = true; } if(ct) {