Skip to content

Commit bf1f7de

Browse files
authored
Fix issue #15926
1 parent afaa9be commit bf1f7de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos/2d/CCLabelTextFormatter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ void Label::recordLetterInfo(const cocos2d::Vec2& point, char32_t utf32Char, int
382382
_lettersInfo[letterIndex].valid = _fontAtlas->_letterDefinitions[utf32Char].validDefinition;
383383
_lettersInfo[letterIndex].positionX = point.x;
384384
_lettersInfo[letterIndex].positionY = point.y;
385+
_lettersInfo[letterIndex].atlasIndex = -1;
385386
}
386387

387388
void Label::recordPlaceholderInfo(int letterIndex, char32_t utf32Char)

0 commit comments

Comments
 (0)