Fix SetContentBoundsI's Exception
authorkhee85.lee <khee85.lee@samsung.com>
Tue, 16 Apr 2013 09:40:18 +0000 (18:40 +0900)
committerkhee85.lee <khee85.lee@samsung.com>
Tue, 16 Apr 2013 09:40:18 +0000 (18:40 +0900)
Change-Id: I24e2f5f8ddfaa405c8401148c2c15ceb543a2a0a
Signed-off-by: khee85.lee <khee85.lee@samsung.com>
src/ui/animations/FUiAnim_VisualElementImpl.cpp

index 3ff6f90..1837ba9 100644 (file)
@@ -1055,7 +1055,7 @@ _VisualElementImpl::SetContentBoundsI(const FloatRectangle& contentBounds)
        if (unlikely(RectUtilIsEqual(__contentBounds, contentBounds)))
                return E_SUCCESS;
 
-       SysTryReturnResult(NID_UI_ANIM, contentBounds.width >= 0.0f && contentBounds.height >= 0.0f, E_INVALID_ARG, "Invalid argument(s) is used. The size of contents bounds must be greater than or equal to 0.0f.");
+       SysTryReturnResult(NID_UI_ANIM, contentBounds.width > 0.0f && contentBounds.height > 0.0f, E_INVALID_ARG, "Invalid argument(s) is used. The size of contents bounds must be greater than or equal to 0.0f.");
 
        __contentBounds = contentBounds;
        __useContentBounds = (__contentBounds.x != 0.0f || __contentBounds.y != 0.0f || __contentBounds.width != 1.0f || __contentBounds.height != 1.0f);