From: Choi Munseok Date: Thu, 4 Apr 2013 12:25:22 +0000 (+0900) Subject: Fix Rotation X-Git-Tag: accepted/tizen_2.1/20130425.033138~448 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f30e14f3166e832bf8afc105053c2c35cd7bcceb;p=platform%2Fframework%2Fnative%2Fuifw.git Fix Rotation Change-Id: I0ff81e3cbc2a9ff0981458167829e8ee7f2a5e76 Signed-off-by: Choi Munseok --- 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); } }