Modified to return -1 position when text is no visible
authorYunji Park <yunji19.park@samsung.com>
Thu, 21 Mar 2013 05:51:16 +0000 (14:51 +0900)
committerYunji Park <yunji19.park@samsung.com>
Thu, 21 Mar 2013 05:51:16 +0000 (14:51 +0900)
Change-Id: I1b4587b5915ddea9abb892c5b36c564684ae7d1c

src/graphics/text/FGrp_TextTextObject.cpp

index 778e007..8f4e4af 100644 (file)
@@ -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;