mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4752 from Dhilan007/label_distanceField
fix align text error in label
This commit is contained in:
commit
a80c9dd625
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue