mirror of https://github.com/axmolengine/axmol.git
Merge pull request #702 from minggo/iss947_closed_loop
fixed #947: fixed a closed loop
This commit is contained in:
commit
1ae8f001b8
|
@ -236,7 +236,7 @@ public class Cocos2dxBitmap{
|
|||
if (tempWidth >= width){
|
||||
int lastIndexOfSpace = content.substring(0, i).lastIndexOf(" ");
|
||||
|
||||
if (lastIndexOfSpace != -1){
|
||||
if (lastIndexOfSpace != -1 && lastIndexOfSpace > start){
|
||||
/**
|
||||
* Should wrap the word
|
||||
*/
|
||||
|
|
|
@ -236,7 +236,7 @@ public class Cocos2dxBitmap{
|
|||
if (tempWidth >= width){
|
||||
int lastIndexOfSpace = content.substring(0, i).lastIndexOf(" ");
|
||||
|
||||
if (lastIndexOfSpace != -1){
|
||||
if (lastIndexOfSpace != -1 && lastIndexOfSpace > start){
|
||||
/**
|
||||
* Should wrap the word
|
||||
*/
|
||||
|
|
|
@ -236,7 +236,7 @@ public class Cocos2dxBitmap{
|
|||
if (tempWidth >= width){
|
||||
int lastIndexOfSpace = content.substring(0, i).lastIndexOf(" ");
|
||||
|
||||
if (lastIndexOfSpace != -1){
|
||||
if (lastIndexOfSpace != -1 && lastIndexOfSpace > start){
|
||||
/**
|
||||
* Should wrap the word
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue