fix align text error in label

This commit is contained in:
Dhilan007 2013-12-31 14:13:26 +08:00
parent 2b54e5e296
commit b51efbd654
1 changed files with 2 additions and 2 deletions

View File

@ -240,10 +240,10 @@ bool LabelTextFormatter::alignText(LabelTextFormatProtocol *theLabel)
continue;
}
int index = static_cast<int>(i + lineLength - 1 + lineNumber);
if(currentChar == 0)
index -= 1;
if (index < 0) continue;
if(currentChar == 0)
continue;
LetterInfo* info = &leterInfo->at( index );
if(info->def.validDefinition == false)
continue;