uifw/AvKon/src/AknPreviewPopUpController.cpp
branchRCL_3
changeset 64 85902f042028
parent 56 d48ab3b357f1
child 72 a5e7a4f63858
--- a/uifw/AvKon/src/AknPreviewPopUpController.cpp	Tue Sep 14 21:48:24 2010 +0300
+++ b/uifw/AvKon/src/AknPreviewPopUpController.cpp	Wed Sep 15 12:29:17 2010 +0300
@@ -131,6 +131,15 @@
 //
 CAknPreviewPopUpController::~CAknPreviewPopUpController()
     {
+    // If transition effect is on, when the deleting is caused by pressing red key
+    // (the font for CONE is already destroyed), the preview popup's hide operation
+    // will call its draw operation which will use the deleted font, thus panic happens;
+    // we hide the popup here in advance to prevent transation effect from drawing.
+    if( iPopUp->IsVisible() )
+        {
+        iPopUp->MakeVisible( EFalse );
+        }
+
     Cancel();
     delete iPopUp;
     iObservers.Reset();