From 7487ba215e776e748bd8212c12fce1a9ef936983 Mon Sep 17 00:00:00 2001 From: Yunji Park Date: Thu, 21 Mar 2013 14:51:16 +0900 Subject: [PATCH] Modified to return -1 position when text is no visible Change-Id: I1b4587b5915ddea9abb892c5b36c564684ae7d1c --- src/graphics/text/FGrp_TextTextObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/text/FGrp_TextTextObject.cpp b/src/graphics/text/FGrp_TextTextObject.cpp index 778e007..8f4e4af 100644 --- a/src/graphics/text/FGrp_TextTextObject.cpp +++ b/src/graphics/text/FGrp_TextTextObject.cpp @@ -3598,7 +3598,7 @@ TextObject::GetTextPositionInfoInNoneWrapAt(int textIndex, int& width, int& heig } absX = posX + textExtent.x; - logicalX = absX + __pcRect.x; + logicalX = (absX >= 0) ? absX + __pcRect.x : absX; absY = posY; logicalY = absY + __pcRect.y; width = textExtent.width; -- 2.7.4