Fixed TC fail regarding form.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 2 Apr 2013 01:16:40 +0000 (10:16 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 2 Apr 2013 01:16:40 +0000 (10:16 +0900)
Change-Id: Iee17f1994da754027de90d4f44e99c7f2e363c05

src/ui/controls/FUiCtrl_FormImpl.cpp

index 3512884..41a1aba 100644 (file)
@@ -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)
        {