[Tizen] If ellipsis is true. then we should used index first position.
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 14 Dec 2018 00:46:49 +0000 (09:46 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Fri, 14 Dec 2018 00:48:21 +0000 (09:48 +0900)
This reverts commit da3960ca0bf5107e555170fedb223cf890200529.

Change-Id: I1c128b452e9dcd1367695a7339eb7b09d5000495

dali-toolkit/internal/text/visual-model-impl.cpp

index bd567a4..9cdc77a 100755 (executable)
@@ -278,7 +278,13 @@ LineIndex VisualModel::GetLineOfCharacter( CharacterIndex characterIndex )
     return mCachedLineIndex;
   }
 
-  // 3) Is not in the cached line. Check in the other lines.
+  // 3) if ellipsis is true. then we should used index cached line.
+  if( lineRun.ellipsis )
+  {
+    return mCachedLineIndex;
+  }
+
+  // 4) Is not in the cached line or ellipsis. Check in the other lines.
   LineIndex index = characterIndex < lineRun.characterRun.characterIndex ? 0u : mCachedLineIndex + 1u;
 
   for( Vector<LineRun>::ConstIterator it = mLines.Begin() + index,