Fixed jira issue - N_SE-36229 and prevent error.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Thu, 2 May 2013 00:09:30 +0000 (09:09 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Thu, 2 May 2013 00:09:30 +0000 (09:09 +0900)
Change-Id: Ie7a86f6eb60ca7462923e384dc6548f396ae45da

src/ui/controls/FUiCtrl_Form.cpp

index 760f8bc..5a7c9c4 100644 (file)
@@ -2970,11 +2970,6 @@ _Form::AttachedToMainTree(void)
        {
                AddIndicatorObject();
 
-               if (__indicatorShowState != IsIndicatorVisible())
-               {
-                               SetIndicatorShowState(__indicatorShowState);
-               }
-
                if (__transparentIndicator != IsIndicatorTranslucent())
                {
                        if (__transparentIndicator == true)
@@ -2987,6 +2982,11 @@ _Form::AttachedToMainTree(void)
                        }
                }
 
+               if (__indicatorShowState != IsIndicatorVisible())
+               {
+                               SetIndicatorShowState(__indicatorShowState);
+               }
+
                r = GetLastResult();
                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
        }
@@ -3307,6 +3307,8 @@ _Form::GetFormOrientationStatus(void) const
        {
                return __pFormOrientationstatusEventListener->OnFormOrientationStatusRequested();
        }
+
+       return ORIENTATION_STATUS_PORTRAIT;
 }
 
 }}} // Tizen::Ui::Controls