From 37b3e48783a54a95218ea2ba31fbb0dc291ff04e Mon Sep 17 00:00:00 2001 From: Keuckdo Bang Date: Tue, 2 Apr 2013 10:16:40 +0900 Subject: [PATCH] Fixed TC fail regarding form. Change-Id: Iee17f1994da754027de90d4f44e99c7f2e363c05 --- src/ui/controls/FUiCtrl_FormImpl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/controls/FUiCtrl_FormImpl.cpp b/src/ui/controls/FUiCtrl_FormImpl.cpp index 3512884..41a1aba 100644 --- a/src/ui/controls/FUiCtrl_FormImpl.cpp +++ b/src/ui/controls/FUiCtrl_FormImpl.cpp @@ -361,8 +361,11 @@ _FormImpl::SetFormStyle(unsigned long formStyle) } _Indicator* pIndicator = GetCore().GetIndicator(); - r = GetCore().AttachSystemChild(*pIndicator); - SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r)); + if (!pIndicator && !pIndicator->IsAttachedToMainTree()) + { + r = GetCore().AttachSystemChild(*pIndicator); + SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r)); + } if (formStyle & FORM_STYLE_TEXT_TAB) { -- 2.7.4