Merge pull request #702 from minggo/iss947_closed_loop

fixed #947: fixed a closed loop
This commit is contained in:
minggo 2012-02-01 02:22:02 -08:00
commit 1ae8f001b8
3 changed files with 3 additions and 3 deletions

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/