diff -r 2ad882606620 -r 1882882c7f9c svgtviewer/SvgtViewerPlugin/UIControlSrc/SVGTUIDialog.cpp --- a/svgtviewer/SvgtViewerPlugin/UIControlSrc/SVGTUIDialog.cpp Wed Mar 31 21:16:02 2010 +0300 +++ b/svgtviewer/SvgtViewerPlugin/UIControlSrc/SVGTUIDialog.cpp Tue May 25 12:28:38 2010 +0300 @@ -42,7 +42,7 @@ #include #include #include -#include +#include #include //----------- @@ -1169,17 +1169,21 @@ void CSVGTUIDialog::HandleResourceChange( TInt aType ) { CAknDialog::HandleResourceChange( aType ); - if( iQuietExitWhenOrientationChange ) - { - TryExitL( EAknCmdExit ); - return; - } + + if ( aType == KAknsMessageSkinChange ) { // No skin related action performed. } else if ( aType == KEikDynamicLayoutVariantSwitch ) { + + if( iQuietExitWhenOrientationChange ) + { + TryExitL( EAknCmdExit ); + return; + } + if ( iCustControl ) { TBool isFullScreenOn; @@ -1189,14 +1193,16 @@ // Change the layout to reflect layout switch TRAP_IGNORE( SwitchDialogLayoutL( isFullScreenOn ) ); } + + // If it is a Layout switch, need to do a redraw + if ( aType == KEikDynamicLayoutVariantSwitch ) + { + // Redraw the dialog + DrawDeferred(); + } + } - // If it is a Layout switch, need to do a redraw - if ( aType == KEikDynamicLayoutVariantSwitch ) - { - // Redraw the dialog - DrawDeferred(); - } } // ----------------------------------------------------------------------------- // CSVGTUIDialog::DrawProgressBarL