uifw/AvKon/src/AknIndicatorContainer.cpp
branchRCL_3
changeset 25 941195f2d488
parent 23 3d340a0166ff
child 38 c52421ed5f07
equal deleted inserted replaced
23:3d340a0166ff 25:941195f2d488
   853     }
   853     }
   854 
   854 
   855 
   855 
   856 EXPORT_C CCoeControl* CAknIndicatorContainer::ComponentControl(TInt aIndex) const
   856 EXPORT_C CCoeControl* CAknIndicatorContainer::ComponentControl(TInt aIndex) const
   857     {
   857     {
   858     return iIndicators->At(aIndex);
   858     if ( aIndex >= 0 && aIndex < iIndicators->Count() )
       
   859         {
       
   860         return iIndicators->At( aIndex );
       
   861         }
       
   862     else
       
   863         {
       
   864         return NULL;
       
   865         }
   859     }
   866     }
   860 
   867 
   861 
   868 
   862 EXPORT_C void CAknIndicatorContainer::Draw( const TRect& aRect ) const
   869 EXPORT_C void CAknIndicatorContainer::Draw( const TRect& aRect ) const
   863     {
   870     {