modify Construct with window handle
authorhoonik.lee <hoonik.lee@samsung.com>
Mon, 18 Mar 2013 06:21:24 +0000 (15:21 +0900)
committerhoonik.lee <hoonik.lee@samsung.com>
Mon, 18 Mar 2013 06:21:24 +0000 (15:21 +0900)
Change-Id: Ie6f81fcbb221fcb90fc49038136bb7a036016cce
Signed-off-by: hoonik.lee <hoonik.lee@samsung.com>
src/graphics/FGrp_CanvasImpl.cpp

index 40b0417..8d9906b 100644 (file)
@@ -330,7 +330,7 @@ _CanvasImpl::Construct(Handle windowHandle, const Rectangle& vcRect)
 
        SysTryReturnResult(NID_GRP, this->_pNativeCanvas, E_OUT_OF_MEMORY, "Fails to allocate memory.");
 
-       SysTryReturnResult(NID_GRP, vcRect.width > 0 && vcRect.height > 0, E_OUT_OF_RANGE,
+       SysTryReturnResult(NID_GRP, vcRect.width >= 0 && vcRect.height >= 0, E_OUT_OF_RANGE,
                                          "The given rectangle(width:%d,height:%d) is out of range.", vcRect.width,
                                          vcRect.height);
 
@@ -394,7 +394,7 @@ _CanvasImpl::Construct(Handle windowHandle, const FloatRectangle& vcRectF)
 
        SysTryReturnResult(NID_GRP, this->_pNativeCanvas, E_OUT_OF_MEMORY, "Fails to allocate memory.");
 
-       SysTryReturnResult(NID_GRP, vcRectF.width > 0.0f && vcRectF.height > 0.0f, E_OUT_OF_RANGE,
+       SysTryReturnResult(NID_GRP, vcRectF.width >= 0.0f && vcRectF.height >= 0.0f, E_OUT_OF_RANGE,
                                          "The given rectangle(width:%f,height:%f) is out of range.", vcRectF.width,
                                          vcRectF.height);