textinput/peninputgenericitut/src/peninputgenericitutlayout.cpp
branchRCL_3
changeset 19 ac7e4d1d9209
parent 15 6c2c2d3ab788
equal deleted inserted replaced
18:b1ea1642412e 19:ac7e4d1d9209
   323     return EPluginInputModeItut;
   323     return EPluginInputModeItut;
   324     }
   324     }
   325 
   325 
   326 TInt CGenericItutUiLayout::SizeChanged(const TAny* /*pData*/)
   326 TInt CGenericItutUiLayout::SizeChanged(const TAny* /*pData*/)
   327     {
   327     {
       
   328 
       
   329     // For avoiding that NULL pointer is called
       
   330     // add UiMgr() and CurrentState() condition
       
   331     if( !( UiMgr() && UiMgr()->CurrentState()))
       
   332         {
       
   333         return KErrBadHandle;
       
   334         }
       
   335 
   328     TBool overLap = UiMgr()->CurrentState()->StateType() 
   336     TBool overLap = UiMgr()->CurrentState()->StateType() 
   329         == CGenericItutUiMgrBase::EStateMatchSelection ? ETrue: EFalse;
   337         == CGenericItutUiMgrBase::EStateMatchSelection ? ETrue: EFalse;
   330         
   338         
   331     iDataMgr->ReadLafInfo();
   339     iDataMgr->ReadLafInfo();
   332 
   340