Fixed to fit textobject bounds with the text extent temporally
authorYunji Park <yunji19.park@samsung.com>
Fri, 29 Mar 2013 00:59:53 +0000 (09:59 +0900)
committerYunji Park <yunji19.park@samsung.com>
Fri, 29 Mar 2013 00:59:53 +0000 (09:59 +0900)
Change-Id: Iead5cac1372febea2293520c1fd880ee5cdd4de2

src/graphics/text/FGrp_TextTextObject.cpp

index 4a04b6b..31e13e8 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <new>
+#include <math.h>
 #include <FGrpBitmap.h>
 #include <FBaseSysLog.h>
 #include "FGrp_FontImpl.h"
@@ -1193,7 +1194,7 @@ TextObject::SetBounds(const Rectangle& lcRect)
 result
 TextObject::SetBounds(const FloatRectangle& lcRect)
 {
-       return SetBounds(_CoordinateSystemUtils::ConvertToInteger(lcRect));
+       return SetBounds(_CoordinateSystemUtils::ConvertToInteger(FloatRectangle(lcRect.x, lcRect.y, ceil(lcRect.width), ceil(lcRect.height))));
 }
 
 result