From 21b5ea0e11e0acb509de26972078c0b23678f414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E6=AD=8C?= Date: Fri, 28 Jul 2023 09:41:44 +0000 Subject: [PATCH] update src/gui/view/viewgroup.cc. Fix removeView MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 侯歌 --- src/gui/view/viewgroup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/view/viewgroup.cc b/src/gui/view/viewgroup.cc index b27e3cd8..52bf452c 100755 --- a/src/gui/view/viewgroup.cc +++ b/src/gui/view/viewgroup.cc @@ -633,7 +633,7 @@ void ViewGroup::detachViewsFromParent(int start, int count){ } void ViewGroup::removeFromArray(int index){ - if (isViewTransitioning(mChildren[index])){ + if (!isViewTransitioning(mChildren[index])){ mChildren[index]->mParent = nullptr; } if (index>=0&&index