Merge pull request #4752 from Dhilan007/label_distanceField

fix align text error in label
This commit is contained in:
minggo 2013-12-30 22:27:55 -08:00
commit a80c9dd625
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;