From: Joogab Yun Date: Fri, 14 Dec 2018 00:44:51 +0000 (+0900) Subject: Revert "[Tizen] If ellipsis is true. then we should used index first position." X-Git-Tag: accepted/tizen/5.0/unified/20181214.110734~5 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=da3960ca0bf5107e555170fedb223cf890200529 Revert "[Tizen] If ellipsis is true. then we should used index first position." This reverts commit 4108286b6b76faed826d2df1106c03b2249a681a. --- diff --git a/dali-toolkit/internal/text/visual-model-impl.cpp b/dali-toolkit/internal/text/visual-model-impl.cpp index 80f7291..bd567a4 100755 --- a/dali-toolkit/internal/text/visual-model-impl.cpp +++ b/dali-toolkit/internal/text/visual-model-impl.cpp @@ -278,13 +278,7 @@ LineIndex VisualModel::GetLineOfCharacter( CharacterIndex characterIndex ) return mCachedLineIndex; } - // 3) if ellipsis is true. then we should used index first position. - if( lineRun.ellipsis ) - { - return 0u; - } - - // 4) Is not in the cached line or ellipsis. Check in the other lines. + // 3) Is not in the cached line. Check in the other lines. LineIndex index = characterIndex < lineRun.characterRun.characterIndex ? 0u : mCachedLineIndex + 1u; for( Vector::ConstIterator it = mLines.Begin() + index,