Modified exception code
authorJongWoo Lee <jongwoo718.lee@samsung.com>
Thu, 20 Jun 2013 04:52:59 +0000 (10:22 +0530)
committerJongWoo Lee <jongwoo718.lee@samsung.com>
Thu, 20 Jun 2013 04:52:59 +0000 (10:22 +0530)
Change-Id: I36c595d5c5bcf5adc48651f75736eede0f7db0f8
Signed-off-by: JongWoo Lee <jongwoo718.lee@samsung.com>
src/ui/controls/FUiCtrl_GalleryRenderer.cpp

index 2717255..02b6eef 100644 (file)
@@ -124,14 +124,14 @@ result
 _GalleryRenderer::SetCanvasVisibility(int canvasIndex, bool visibility)
 {
        _GalleryCanvas* pCanvas = GetCanvasManager().GetCanvas(canvasIndex);
+       result r = GetLastResult();
+       SysTryReturn(NID_UI_CTRL, pCanvas != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
+
        if (pCanvas->IsVisibility() == visibility)
        {
                return E_SUCCESS;
        }
 
-       result r = GetLastResult();
-       SysTryReturn(NID_UI_CTRL, pCanvas != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
-
        pCanvas->GetFrameVisualElement().SetImplicitAnimationEnabled(false);
 
        if (visibility == true)