From f30e14f3166e832bf8afc105053c2c35cd7bcceb Mon Sep 17 00:00:00 2001 From: Choi Munseok Date: Thu, 4 Apr 2013 21:25:22 +0900 Subject: [PATCH] Fix Rotation Change-Id: I0ff81e3cbc2a9ff0981458167829e8ee7f2a5e76 Signed-off-by: Choi Munseok --- src/ui/controls/FUiCtrl_FrameImpl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/controls/FUiCtrl_FrameImpl.cpp b/src/ui/controls/FUiCtrl_FrameImpl.cpp index 843e62a..d50f9f9 100644 --- a/src/ui/controls/FUiCtrl_FrameImpl.cpp +++ b/src/ui/controls/FUiCtrl_FrameImpl.cpp @@ -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); } } -- 2.7.4