Fix for TDIS-6363.
authorsriram.k <sriram.k@samsung.com>
Tue, 25 Jun 2013 08:07:44 +0000 (13:37 +0530)
committersriram.k <sriram.k@samsung.com>
Tue, 25 Jun 2013 08:48:19 +0000 (14:18 +0530)
Signed-off-by: sriram.k <sriram.k@samsung.com>
Change-Id: I099527ea36b840a2c4990d723b80a46c4c842887

src/ui/controls/FUiCtrl_ProgressPopup.cpp

index b0d9024..540b88c 100644 (file)
@@ -562,20 +562,17 @@ result
 _ProgressPopup::UpdateBounds(void)
 {
        result r = E_SUCCESS;
-
+       AppLog("Sriram:Entered");
        // change the button bounds
-       __pButton->SetBounds(__pProgressPopupPresenter->GetButtonBounds());
+       if (HasButton())
+       {
+               __pButton->SetBounds(__pProgressPopupPresenter->GetButtonBounds());
+       }
        // update total height -> GetTotalHeight (called by Impl)
        // update process-animation rect position -> GetAnimationRect (called by UpdateProcessAnimationVE)
        // update process-animation VE
        r = __pProgressPopupPresenter->UpdateProcessAnimation();
-//     SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
-
-       return r;
-
-CATCH:
-       delete __pButton;
-       __pButton = null;
+       SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
        return r;
 }