1. Fixed draw last space charcter, 2. Removed unnecessary clipping
authorYunji Park <yunji19.park@samsung.com>
Thu, 28 Mar 2013 07:34:03 +0000 (16:34 +0900)
committerYunji Park <yunji19.park@samsung.com>
Thu, 28 Mar 2013 07:34:03 +0000 (16:34 +0900)
Change-Id: I819629a8acaee64a61d81370c46dbc604ed9b814

src/graphics/text/FGrp_TextTextComposite.cpp
src/graphics/text/FGrp_TextTextObject.cpp

index a35e247..62178a8 100644 (file)
@@ -656,7 +656,8 @@ TextComposite::Draw(_CanvasImpl& canvasImpl, Rectangle& displayRect, int startTe
        GetRegion(startTextIndex, textLength, textSize.width, textSize.height);
        if (action == TEXT_OBJECT_ACTION_TYPE_ABBREV)
        {
-               TextElement* pLastTextElement = GetElementAtTextIndex(startTextIndex + textLength - 1);
+               TextElement* pLastTextElement = null;
+               pLastTextElement = (textLength == 0) ? GetElementAtTextIndex(startTextIndex) : GetElementAtTextIndex(startTextIndex + textLength - 1);
                SysTryCatch(NID_GRP, pLastTextElement, r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Fail to get element.");
 
                if (pLastTextElement->GetType() == TEXT_ELEMENT_TYPE_TEXT)
index 98cac44..4a04b6b 100644 (file)
@@ -592,8 +592,6 @@ CONTINUE_PROC:
                        targetBounds.width = lineBounds.width;
                        targetBounds.height = lineBounds.height;
 
-                       pCanvas->SetClipBounds(targetBounds);
-
                        slidingRect = targetBounds;
 
                        slidingRect.x += __pTextColumn->GetSlidingPosition();