From: Joogab Yun Date: Fri, 14 Dec 2018 00:46:49 +0000 (+0900) Subject: [Tizen] If ellipsis is true. then we should used index first position. X-Git-Tag: submit/tizen_5.0/20181214.042026~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea4667234e1ee45101f625ff13e36a7bd437cc8b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] If ellipsis is true. then we should used index first position. This reverts commit da3960ca0bf5107e555170fedb223cf890200529. Change-Id: I1c128b452e9dcd1367695a7339eb7b09d5000495 --- diff --git a/dali-toolkit/internal/text/visual-model-impl.cpp b/dali-toolkit/internal/text/visual-model-impl.cpp index bd567a46ca..9cdc77a8da 100755 --- a/dali-toolkit/internal/text/visual-model-impl.cpp +++ b/dali-toolkit/internal/text/visual-model-impl.cpp @@ -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::ConstIterator it = mLines.Begin() + index,