diff -r c8fb4cf7b3ae -r 5e18d8c489d6 textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutrootctrl.cpp --- a/textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutrootctrl.cpp Tue May 11 16:31:42 2010 +0300 +++ b/textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutrootctrl.cpp Tue May 25 13:03:44 2010 +0300 @@ -815,7 +815,8 @@ if(!AbleToDraw()) return; - + + Clear(); CControlGroup::Draw(); if(!iShadowRect.IsEmpty()) @@ -1004,7 +1005,9 @@ { if(aCtrl->OrderPos() <= iPopCtrlList[i]->OrderPos()) { + CFepUiBaseCtrl* temp = iPopCtrlList[i - 1]; iPopCtrlList[i - 1] = iPopCtrlList[i]; + iPopCtrlList[i] = temp; } else { @@ -1142,7 +1145,10 @@ { if(aCtrl->OrderPos() >= iPopCtrlList[i]->OrderPos()) { - iPopCtrlList[i+1] = iPopCtrlList[i]; + CFepUiBaseCtrl* temp = iPopCtrlList[i + 1]; + iPopCtrlList[i + 1] = iPopCtrlList[i]; + iPopCtrlList[i] = temp; + } else {