uigraphics/AknIcon/src/AknIconManager.cpp
changeset 2 abcbdabaa4c5
parent 0 05e9090e2422
equal deleted inserted replaced
1:ba33815114d6 2:abcbdabaa4c5
   210 #ifdef __AKNICON_TRACES
   210 #ifdef __AKNICON_TRACES
   211     RDebug::Print( _L("AknIcon: %x Calling CAknIconManager::InitializeIcon - Icon size (%d,%d), Mode=%d, Angle=%d"),
   211     RDebug::Print( _L("AknIcon: %x Calling CAknIconManager::InitializeIcon - Icon size (%d,%d), Mode=%d, Angle=%d"),
   212                    this, aSize.iWidth, aSize.iHeight, aMode, aAngle);
   212                    this, aSize.iWidth, aSize.iHeight, aMode, aAngle);
   213 #endif    
   213 #endif    
   214     
   214     
       
   215     if(!iBitmap)
       
   216         {
       
   217             return KErrCorrupt;
       
   218         }
   215     // If already initialized with the same parameters, do nothing.
   219     // If already initialized with the same parameters, do nothing.
   216     if ( iBitmap->Handle() )
   220     if ( iBitmap->Handle() )
   217         {
   221         {
   218         // MBM icon
   222         // MBM icon
   219         if ( IsMbmIcon() )
   223         if ( IsMbmIcon() )