BUG in CCLabelTTF which will lose one char at the end of each line when wrap text automatically

CCLabelTTF which will lose one char at the end of each line when wrap text automatically .
It is rasied by the following bug code:
Cocos2dxBitmap.java -> divideStringWithMaxWidth

while(content.indexOf(i++) ’ ') {
}

fixed it by change it as following:

while(content.indexOf(i) ‘’) {* i++*
}

and it seems call the wrong function, in my game I fix it this way:

while(i < charLength && content.charAt(i) = = ‘’) {
i++;
}

bingle zhang wrote:

CCLabelTTF which will lose one char at the end of each line when wrap text automatically .
It is rasied by the following bug code:
Cocos2dxBitmap.java -> divideStringWithMaxWidth
>
while(content.indexOf(i++) ’ ') {
}

fixed it by change it as following:

while(content.indexOf(i) ‘’) {* i++*
}