Skip to content

Commit

Permalink
Merge pull request cocos2d#2907 from waiter/master
Browse files Browse the repository at this point in the history
fixed cocos2d#2306: update “solve android crash with CCLabelTTF setString function”
  • Loading branch information
James Chen committed Jun 19, 2013
2 parents 8476447 + cff29b5 commit 92a0ab1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -390,7 +390,7 @@ private static LinkedList<String> divideStringWithMaxWidth(
}

/* Remove spaces at the beginning of a new line. */
while (pString.charAt(i) == ' ') {
while (i < charLength && pString.charAt(i) == ' ') {
++i;
}

Expand Down

0 comments on commit 92a0ab1

Please sign in to comment.