Skip to content

Commit 769c508

Browse files
committed
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 into Iss2421_TextureRepeating
2 parents 78db8f4 + 8761c71 commit 769c508

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)