X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Femoji-helper.cpp;h=c458fd0812fcf5934fbe25f698e4a081faa0a04d;hb=d783bae0658096314bd94361be75d5999797735e;hp=eec4ee480d90ed413a06ccc9bfd49ddab723b921;hpb=c039ebb7a115f5516aa792c1aa3bd6370e61acfd;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/emoji-helper.cpp b/dali-toolkit/internal/text/emoji-helper.cpp index eec4ee4..c458fd0 100644 --- a/dali-toolkit/internal/text/emoji-helper.cpp +++ b/dali-toolkit/internal/text/emoji-helper.cpp @@ -77,7 +77,7 @@ bool IsNewKeycapSequence(const Character* const textBuffer, // Default initialization does not keycap sequence bool isNewKeycapSequence = false; - if(currentCharacterIndex < lastCharacterIndex) + if(currentCharacterIndex <= lastCharacterIndex) { Character currentCharacter = *(textBuffer + currentCharacterIndex); if(IsStartForKeycapSequence(currentCharacter)) @@ -112,7 +112,7 @@ bool IsNewVariationSelectorSequence(const Character* const textBuffer, // Default initialization does not VariationSelector sequence bool isNewVariationSelectorSequence = false; - if(currentCharacterIndex < lastCharacterIndex) + if(currentCharacterIndex <= lastCharacterIndex) { Character currentCharacter = *(textBuffer + currentCharacterIndex); if(TextAbstraction::IsEmojiVariationSequences(currentCharacter))