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)
targetBounds.width = lineBounds.width;
targetBounds.height = lineBounds.height;
- pCanvas->SetClipBounds(targetBounds);
-
slidingRect = targetBounds;
slidingRect.x += __pTextColumn->GetSlidingPosition();