From 37e0b179a9a440553ffe143feb62760b00a61a39 Mon Sep 17 00:00:00 2001 From: Yunji Park Date: Fri, 29 Mar 2013 09:59:53 +0900 Subject: [PATCH] Fixed to fit textobject bounds with the text extent temporally Change-Id: Iead5cac1372febea2293520c1fd880ee5cdd4de2 --- src/graphics/text/FGrp_TextTextObject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics/text/FGrp_TextTextObject.cpp b/src/graphics/text/FGrp_TextTextObject.cpp index 4a04b6b..31e13e8 100644 --- a/src/graphics/text/FGrp_TextTextObject.cpp +++ b/src/graphics/text/FGrp_TextTextObject.cpp @@ -21,6 +21,7 @@ */ #include +#include #include #include #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 -- 2.7.4