From d75edb71100461e3a9da04cce8306a0747554b4c Mon Sep 17 00:00:00 2001 From: Keuckdo Bang Date: Fri, 5 Apr 2013 14:32:47 +0900 Subject: [PATCH] Fixed crash of TC. Change-Id: I5ee46fc2d30a0a2bb92e2544c3e75057b203b302 --- src/ui/controls/FUiCtrl_Form.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/controls/FUiCtrl_Form.cpp b/src/ui/controls/FUiCtrl_Form.cpp index 95b59e1..9e1a2fc 100644 --- a/src/ui/controls/FUiCtrl_Form.cpp +++ b/src/ui/controls/FUiCtrl_Form.cpp @@ -2036,7 +2036,7 @@ _Form::RemoveHeader(void) result r = E_SUCCESS; if (__pHeader) { - if (IsAttachedToMainTree()) + if (__pHeader->GetParent()) { r = DetachSystemChild(*__pHeader); SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r)); @@ -2059,7 +2059,7 @@ _Form::RemoveFooter(void) result r = E_SUCCESS; if (__pFooter) { - if (IsAttachedToMainTree()) + if (__pFooter->GetParent()) { r = DetachSystemChild(*__pFooter); SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r)); @@ -2082,7 +2082,7 @@ _Form::RemoveTab(void) result r = E_SUCCESS; if (__pTab) { - if (IsAttachedToMainTree()) + if (__pFooter->GetParent()) { r = DetachSystemChild(*__pTab); SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r)); -- 2.7.4