mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1751 from minggo/iss1610_labelttf
fixed #1610:skip only white character
This commit is contained in:
commit
9d793f0def
|
@ -295,8 +295,8 @@ public class Cocos2dxBitmap {
|
|||
}
|
||||
|
||||
/* Remove spaces at the beginning of a new line. */
|
||||
while (pString.indexOf(i++) == ' ') {
|
||||
;
|
||||
while (pString.indexOf(i) == ' ') {
|
||||
++i;
|
||||
}
|
||||
|
||||
start = i;
|
||||
|
|
Loading…
Reference in New Issue