Skip to content

Commit 8761c71

Browse files
committed
Merge pull request cocos2d#2425 from VisualSJ/develop-fix
Closed cocos2d#2424: Repair labelTTF circulation problems
2 parents 4b73d41 + 0155c1e commit 8761c71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cocos2d/core/labelttf/CCLabelTTF.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,10 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
847847
}
848848

849849
fuzzyLen -= pushNum;
850+
if(fuzzyLen === 0){
851+
fuzzyLen = 1;
852+
sLine = sLine.substr(1);
853+
}
850854

851855
var sText = text.substr(0, fuzzyLen);
852856

0 commit comments

Comments
 (0)