--- a/uifw/AvKon/src/akninfrm.cpp Thu Jul 15 18:56:19 2010 +0300
+++ b/uifw/AvKon/src/akninfrm.cpp Thu Aug 19 10:11:06 2010 +0300
@@ -353,11 +353,18 @@
// we need to provide own context if one does not exist
// because old style drawing did kind of work even
// without calling SetInputContext( ... )
- iInputContext = CAknsFrameBackgroundControlContext::NewL(
- KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse );
- iFlags = iFlags | EOwnsInputContext;
- // also need to provide skin for the editor in this case
- static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );
+ TRAP_IGNORE
+ (
+ iInputContext = CAknsFrameBackgroundControlContext::NewL(
+ KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse);
+
+ if (iInputContext)
+ {
+ iFlags = iFlags | EOwnsInputContext;
+ // also need to provide skin for the editor in this case
+ static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );
+ }
+ );
}
if ( iInputContext )
@@ -509,7 +516,7 @@
{
case KAknsMessageSkinChange:
case KEikDynamicLayoutVariantSwitch:
- CreateIconL();
+ TRAP_IGNORE(CreateIconL());
break;
default: