From: Yunji Park Date: Fri, 29 Mar 2013 00:59:53 +0000 (+0900) Subject: Fixed to fit textobject bounds with the text extent temporally X-Git-Tag: accepted/tizen_2.1/20130425.033138~624^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37e0b179a9a440553ffe143feb62760b00a61a39;p=framework%2Fosp%2Fuifw.git Fixed to fit textobject bounds with the text extent temporally Change-Id: Iead5cac1372febea2293520c1fd880ee5cdd4de2 --- 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