Fix Rotation
authorChoi Munseok <ms47.choi@samsung.com>
Thu, 4 Apr 2013 12:25:22 +0000 (21:25 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Thu, 4 Apr 2013 12:25:22 +0000 (21:25 +0900)
Change-Id: I0ff81e3cbc2a9ff0981458167829e8ee7f2a5e76
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/controls/FUiCtrl_FrameImpl.cpp

index 843e62a..d50f9f9 100644 (file)
@@ -398,9 +398,11 @@ _FrameImpl::OnChildDetached(const _Control& child)
        }
        else if (childCount > 0)
        {
-               _FormImpl* pCurrentForm = dynamic_cast<_FormImpl*>(GetChild(childCount - 1));
-               SysTryReturnVoidResult(NID_UI_CTRL, pCurrentForm, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
-               pCurrentForm->UpdateOrientationStatus(true);
+               _Control* pControl = GetCore().GetChild(childCount - 1);
+               _ControlImpl* pControlImpl = static_cast<_ControlImpl*>(pControl->GetUserData());
+               _FormImpl* pCurrentFormImpl = dynamic_cast<_FormImpl*>(pControlImpl);
+               SysTryReturnVoidResult(NID_UI_CTRL, pCurrentFormImpl, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+               pCurrentFormImpl->UpdateOrientationStatus(true);
        }
 }